do not allow sub dirs for services
This commit is contained in:
@@ -50,15 +50,17 @@ class ServiceFactory
|
||||
|
||||
protected function getClassName(string $name)
|
||||
{
|
||||
return $this->classFinder->find('Services', $name, true);
|
||||
return $this->classFinder->find('Services', $name);
|
||||
}
|
||||
|
||||
public function checkExists(string $name) : bool
|
||||
{
|
||||
$className = $this->getClassName($name);
|
||||
|
||||
if (!$className) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user