for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Arp\LaminasEntity\Service;
use Arp\DoctrineEntityRepository\EntityRepositoryInterface;
use Arp\DoctrineEntityRepository\EntityRepositoryProviderInterface;
use Laminas\ServiceManager\AbstractPluginManager;
/**
* @author Alex Patterson <[email protected]>
* @package Arp\LaminasEntity\Service
*/
final class EntityRepositoryManager extends AbstractPluginManager implements EntityRepositoryProviderInterface
{
* An object type that the created instance must be instanced of
*
* @var null|string
protected $instanceOf = EntityRepositoryInterface::class;
* @param string $entityName
* @return bool
public function hasRepository(string $entityName): bool
return $this->has($entityName);
}
* @param array $options
* @return EntityRepositoryInterface
* @throws \Throwable
public function getRepository(string $entityName, array $options = []): EntityRepositoryInterface
return $this->get($entityName, $options);