mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Fixed ApiDoc for controllers enhanced with JMS CG with Doctrine Common
This commit is contained in:
parent
f2a80511a7
commit
e4ec8e79f3
@ -12,6 +12,7 @@
|
|||||||
namespace Nelmio\ApiDocBundle\Extractor;
|
namespace Nelmio\ApiDocBundle\Extractor;
|
||||||
|
|
||||||
use Doctrine\Common\Annotations\Reader;
|
use Doctrine\Common\Annotations\Reader;
|
||||||
|
use Doctrine\Common\Util\ClassUtils;
|
||||||
use Nelmio\ApiDocBundle\Annotation\ApiDoc;
|
use Nelmio\ApiDocBundle\Annotation\ApiDoc;
|
||||||
use Nelmio\ApiDocBundle\Parser\ParserInterface;
|
use Nelmio\ApiDocBundle\Parser\ParserInterface;
|
||||||
use Nelmio\ApiDocBundle\Parser\PostParserInterface;
|
use Nelmio\ApiDocBundle\Parser\PostParserInterface;
|
||||||
@ -186,7 +187,7 @@ class ApiDocExtractor
|
|||||||
if ($this->container->has($controller)) {
|
if ($this->container->has($controller)) {
|
||||||
$this->container->enterScope('request');
|
$this->container->enterScope('request');
|
||||||
$this->container->set('request', new Request(), 'request');
|
$this->container->set('request', new Request(), 'request');
|
||||||
$class = get_class($this->container->get($controller));
|
$class = ClassUtils::getRealClass(get_class($this->container->get($controller)));
|
||||||
$this->container->leaveScope('request');
|
$this->container->leaveScope('request');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user