Bolt\Storage\EntityManager::getDefaultRepositoryFactory PHP Метод

getDefaultRepositoryFactory() публичный Метод

Returns the default repository factory set on this object
public getDefaultRepositoryFactory ( Doctrine\Common\Persistence\Mapping\ClassMetadata $classMetadata ) : callable
$classMetadata Doctrine\Common\Persistence\Mapping\ClassMetadata
Результат 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);
    }