mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-08 18:49:26 +03:00
fix deprecations
This commit is contained in:
parent
e0cbba35c6
commit
becd5e2aeb
@ -48,11 +48,6 @@ class ApiDocExtractor
|
||||
*/
|
||||
private $commentExtractor;
|
||||
|
||||
/**
|
||||
* @var ControllerNameParser
|
||||
*/
|
||||
protected $controllerNameParser;
|
||||
|
||||
/**
|
||||
* @var ParserInterface[]
|
||||
*/
|
||||
@ -68,13 +63,12 @@ class ApiDocExtractor
|
||||
*/
|
||||
protected $annotationsProviders;
|
||||
|
||||
public function __construct(ContainerInterface $container, RouterInterface $router, Reader $reader, DocCommentExtractor $commentExtractor, ControllerNameParser $controllerNameParser, array $handlers, array $annotationsProviders)
|
||||
public function __construct(ContainerInterface $container, RouterInterface $router, Reader $reader, DocCommentExtractor $commentExtractor, array $handlers, array $annotationsProviders)
|
||||
{
|
||||
$this->container = $container;
|
||||
$this->router = $router;
|
||||
$this->reader = $reader;
|
||||
$this->commentExtractor = $commentExtractor;
|
||||
$this->controllerNameParser = $controllerNameParser;
|
||||
$this->handlers = $handlers;
|
||||
$this->annotationsProviders = $annotationsProviders;
|
||||
}
|
||||
@ -227,9 +221,9 @@ class ApiDocExtractor
|
||||
*/
|
||||
public function getReflectionMethod($controller)
|
||||
{
|
||||
if (false === strpos($controller, '::') && 2 === substr_count($controller, ':')) {
|
||||
$controller = $this->controllerNameParser->parse($controller);
|
||||
}
|
||||
// if (false === strpos($controller, '::') && 2 === substr_count($controller, ':')) {
|
||||
// $controller = $this->controllerNameParser->parse($controller);
|
||||
// }
|
||||
|
||||
if (preg_match('#(.+)::([\w]+)#', $controller, $matches)) {
|
||||
$class = $matches[1];
|
||||
|
Loading…
x
Reference in New Issue
Block a user