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