mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-04-02 21:36:14 +03:00
fix null $controller
This commit is contained in:
parent
d8b5ab9f71
commit
6abd901696
1 changed files with 3 additions and 3 deletions
|
@ -221,9 +221,9 @@ class ApiDocExtractor
|
|||
*/
|
||||
public function getReflectionMethod($controller)
|
||||
{
|
||||
// if (false === strpos($controller, '::') && 2 === substr_count($controller, ':')) {
|
||||
// $controller = $this->controllerNameParser->parse($controller);
|
||||
// }
|
||||
if (null === $controller) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (preg_match('#(.+)::([\w]+)#', $controller, $matches)) {
|
||||
$class = $matches[1];
|
||||
|
|
Loading…
Add table
Reference in a new issue