We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8326c8c commit 8321cc2Copy full SHA for 8321cc2
src/parseApi/ParseAnnotation.php
@@ -92,10 +92,8 @@ protected function getConfigControllers(string $path): array
92
$configControllers = $config['controllers'];
93
if (!empty($configControllers) && count($configControllers) > 0) {
94
foreach ($configControllers as $item) {
95
- $itemPath = $item;
96
- $class = $path . '\\' . $itemPath;
97
- if (class_exists($class)) {
98
- $controllers[] = $class;
+ if ( strpos($item, $path) !== false && class_exists($item)) {
+ $controllers[] = $item;
99
}
100
101
0 commit comments