mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
fix null $controller
This commit is contained in:
parent
d8b5ab9f71
commit
6abd901696
@ -221,9 +221,9 @@ class ApiDocExtractor
|
|||||||
*/
|
*/
|
||||||
public function getReflectionMethod($controller)
|
public function getReflectionMethod($controller)
|
||||||
{
|
{
|
||||||
// if (false === strpos($controller, '::') && 2 === substr_count($controller, ':')) {
|
if (null === $controller) {
|
||||||
// $controller = $this->controllerNameParser->parse($controller);
|
return null;
|
||||||
// }
|
}
|
||||||
|
|
||||||
if (preg_match('#(.+)::([\w]+)#', $controller, $matches)) {
|
if (preg_match('#(.+)::([\w]+)#', $controller, $matches)) {
|
||||||
$class = $matches[1];
|
$class = $matches[1];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user