do not allow sub dirs for services

This commit is contained in:
Yuri Kuznetsov
2020-09-08 16:42:09 +03:00
parent a0ccbfcac5
commit 81465a50d6
+3 -1
View File
@@ -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;
}