grand impromenets for customization abilities
This commit is contained in:
@@ -45,7 +45,7 @@ class RepositoryFactory
|
||||
|
||||
public function create($name)
|
||||
{
|
||||
$className = $this->entityManager->normalizeRepositoryName($name);
|
||||
$className = $this->entityManager->getRepositoryClassName($name);
|
||||
|
||||
if (!class_exists($className)) {
|
||||
$className = $this->defaultRepositoryClassName;
|
||||
@@ -55,11 +55,6 @@ class RepositoryFactory
|
||||
return $repository;
|
||||
}
|
||||
|
||||
protected function normalizeName($name)
|
||||
{
|
||||
return $name;
|
||||
}
|
||||
|
||||
public function setDefaultRepositoryClassName($defaultRepositoryClassName)
|
||||
{
|
||||
$this->defaultRepositoryClassName = $defaultRepositoryClassName;
|
||||
|
||||
Reference in New Issue
Block a user