| @@ 286-293 (lines=8) @@ | ||
| 283 | { |
|
| 284 | // @group tag on the method overrides that on the controller |
|
| 285 | $docBlockComment = $method->getDocComment(); |
|
| 286 | if ($docBlockComment) { |
|
| 287 | $phpdoc = new DocBlock($docBlockComment); |
|
| 288 | foreach ($phpdoc->getTags() as $tag) { |
|
| 289 | if ($tag->getName() === 'group') { |
|
| 290 | return $tag->getContent(); |
|
| 291 | } |
|
| 292 | } |
|
| 293 | } |
|
| 294 | ||
| 295 | $docBlockComment = $controller->getDocComment(); |
|
| 296 | if ($docBlockComment) { |
|
| @@ 296-303 (lines=8) @@ | ||
| 293 | } |
|
| 294 | ||
| 295 | $docBlockComment = $controller->getDocComment(); |
|
| 296 | if ($docBlockComment) { |
|
| 297 | $phpdoc = new DocBlock($docBlockComment); |
|
| 298 | foreach ($phpdoc->getTags() as $tag) { |
|
| 299 | if ($tag->getName() === 'group') { |
|
| 300 | return $tag->getContent(); |
|
| 301 | } |
|
| 302 | } |
|
| 303 | } |
|
| 304 | ||
| 305 | return $this->config->get(('default_group')); |
|
| 306 | } |
|