mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-08 18:49:26 +03:00
Use proper request properties
This commit is contained in:
parent
45bbb09d02
commit
ef46170998
@ -47,12 +47,12 @@ class RequestListener
|
||||
|
||||
$request = $event->getRequest();
|
||||
|
||||
if (!$request->get('_doc')) {
|
||||
if (!$request->query->get('_doc')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$controller = $request->get('_controller');
|
||||
$route = $request->get('_route');
|
||||
$controller = $request->attributes->get('_controller');
|
||||
$route = $request->attributes->get('_route');
|
||||
|
||||
if (null !== $array = $this->extractor->get($controller, $route)) {
|
||||
$result = $this->formatter->formatOne($array['annotation'], $array['route']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user