mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-09 02:59:27 +03:00
Added support for deprecated phpdoc tag
This commit is contained in:
parent
629ee251da
commit
bb9fd6d756
@ -320,6 +320,9 @@ class ApiDocExtractor
|
|||||||
if (preg_match('{^@param (.+)}', trim($line), $matches)) {
|
if (preg_match('{^@param (.+)}', trim($line), $matches)) {
|
||||||
$paramDocs[] = $matches[1];
|
$paramDocs[] = $matches[1];
|
||||||
}
|
}
|
||||||
|
if (preg_match('{^@deprecated\b(.*)}', trim($line), $matches)) {
|
||||||
|
$annotation->setDeprecated(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$regexp = '{(\w*) *\$%s *(.*)}i';
|
$regexp = '{(\w*) *\$%s *(.*)}i';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user