mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
parent
347ac74648
commit
667044863c
@ -54,12 +54,17 @@ class PhpDocHandler implements HandlerInterface
|
||||
'description' => '',
|
||||
);
|
||||
}
|
||||
if ('_scheme' == $name) {
|
||||
|
||||
if ('_scheme' === $name) {
|
||||
$https = ('https' == $value);
|
||||
$annotation->setHttps($https);
|
||||
}
|
||||
}
|
||||
|
||||
if (method_exists($route, 'getSchemes')) {
|
||||
$annotation->setHttps(in_array('https', $route->getSchemes()));
|
||||
}
|
||||
|
||||
$paramDocs = array();
|
||||
foreach (explode("\n", $this->commentExtractor->getDocComment($method)) as $line) {
|
||||
if (preg_match('{^@param (.+)}', trim($line), $matches)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user