Skip to content

Commit e7a985b

Browse files
author
dereuromark
committed
Fix Controller component annotations.
1 parent 689a6a5 commit e7a985b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Annotator/ControllerAnnotator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ protected function _getComponentAnnotations($controllerName) {
117117
* @return array
118118
*/
119119
protected function _getUsedComponents($controllerName) {
120-
$plugin = $this->getConfig(static::CONFIG_PLUGIN);
120+
$plugin = $controllerName !== 'AppController' ? $this->getConfig(static::CONFIG_PLUGIN) : null;
121121
$className = App::className(($plugin ? $plugin . '.' : '') . $controllerName, 'Controller');
122122
if (!$className) {
123123
return [];

0 commit comments

Comments
 (0)