Bolt\Storage\EntityManager::getDefaultRepositoryFactory PHP Méthode

getDefaultRepositoryFactory() public méthode

Returns the default repository factory set on this object
public getDefaultRepositoryFactory ( Doctrine\Common\Persistence\Mapping\ClassMetadata $classMetadata ) : callable
$classMetadata Doctrine\Common\Persistence\Mapping\ClassMetadata
Résultat callable $factory
    public function getDefaultRepositoryFactory($classMetadata)
    {
        if (!is_callable($this->defaultRepositoryFactory)) {
            throw new \RuntimeException('Unable to handle unmapped data without a defaultRepositoryFactory set', 1);
        }
        $factory = $this->defaultRepositoryFactory;
        return $factory($classMetadata);
    }