diff --git a/application/Espo/Core/ORM/RepositoryFactory.php b/application/Espo/Core/ORM/RepositoryFactory.php index a1456b4081..d0fda668b4 100644 --- a/application/Espo/Core/ORM/RepositoryFactory.php +++ b/application/Espo/Core/ORM/RepositoryFactory.php @@ -32,38 +32,29 @@ namespace Espo\Core\ORM; use Espo\Core\Binding\BindingContainerBuilder; use Espo\Core\Binding\ContextualBinder; -use Espo\Core\{ - InjectableFactory, - Utils\ClassFinder, - Repositories\Database as DatabaseRepository, -}; +use Espo\Core\InjectableFactory; +use Espo\Core\Repositories\Database as DatabaseRepository; +use Espo\Core\Utils\ClassFinder; -use Espo\ORM\{ - Repository\RepositoryFactory as RepositoryFactoryInterface, - Repository\Repository, - EntityFactory as EntityFactoryInteface, -}; +use Espo\ORM\EntityFactory as EntityFactoryInterface; +use Espo\ORM\Repository\Repository; +use Espo\ORM\Repository\RepositoryFactory as RepositoryFactoryInterface; class RepositoryFactory implements RepositoryFactoryInterface { - /** - * @var class-string> - */ + /** @var class-string> */ protected $defaultClassName = DatabaseRepository::class; - protected EntityFactoryInteface $entityFactory; - + protected EntityFactoryInterface $entityFactory; protected InjectableFactory $injectableFactory; - protected ClassFinder $classFinder; public function __construct( - EntityFactoryInteface $entityFactory, + EntityFactoryInterface $entityFactory, InjectableFactory $injectableFactory, ClassFinder $classFinder ) { $this->entityFactory = $entityFactory; - $this->injectableFactory = $injectableFactory; $this->classFinder = $classFinder; } @@ -88,7 +79,7 @@ class RepositoryFactory implements RepositoryFactoryInterface return $this->injectableFactory->createWithBinding( $className, BindingContainerBuilder::create() - ->bindInstance(EntityFactoryInteface::class, $this->entityFactory) + ->bindInstance(EntityFactoryInterface::class, $this->entityFactory) ->bindInstance(EntityFactory::class, $this->entityFactory) ->inContext( $className,