Skip to content

Commit 94c59f8

Browse files
committed
fix: do not qualify class name, if class with such name exists
1 parent 6ae8f46 commit 94c59f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ValueObjects/RegisteredResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function getKeyType(): string
5050
*/
5151
protected function qualifyControllerClass(string $controller): string
5252
{
53-
if (Str::startsWith($controller, config('orion.namespaces.controllers'))) {
53+
if (class_exists($controller) || Str::startsWith($controller, config('orion.namespaces.controllers'))) {
5454
return $controller;
5555
}
5656

0 commit comments

Comments
 (0)