infinito/application/symfony/src/Domain/CRUDManagement/RepositoryFactoryServiceInterface.php
2019-01-20 12:54:56 +01:00

22 lines
452 B
PHP

<?php
namespace App\Domain\CRUDManagement;
use App\Repository\RepositoryInterface;
use App\Entity\EntityInterface;
/**
* Offers a fabric for entity repositories.
*
* @author kevinfrantz
*/
interface RepositoryFactoryServiceInterface
{
/**
* @param EntityInterface $entity
*
* @return RepositoryInterface The repositoy of the interface
*/
public function getRepository(EntityInterface $entity): RepositoryInterface;
}