src/Sulu/Bundle/PersistenceBundle/DependencyInjection/PersistenceExtensionTrait.php
private function defineRepositories(array $objects, ContainerBuilder $container)
    {
        foreach ($objects as $object => $services) {
            if (array_key_exists('model', $services)) {
                $repositoryDefinition = $this->getRepositoryDefinition($object, $services, $container);

                $container->setDefinition(
                    $this->getContainerKey('repository', $object),
                    $repositoryDefinition
                )->setPublic(true);
            }
        }
    }
private function defineRepositories(array $objects, ContainerBuilder $container)
    {
        foreach ($objects as $object => $services) {
            if (array_key_exists('model', $services)) {
                $repositoryDefinition = $this->getRepositoryDefinition($object, $services, $container);

                $container->setDefinition(
                    $this->getContainerKey('repository', $object),
                    $repositoryDefinition
                )->setPublic(true);
            }
        }
    }
private function defineRepositories ( array $ objects , ContainerBuilder $ container ) { foreach ( $ objects as $ object => $ services ) { if ( array_key_exists ( 'model' , $ services ) ) { $ repositoryDefinition = $ this -> getRepositoryDefinition ( $ object , $ services , $ container ) ; $ container -> setDefinition ( $ this -> getContainerKey ( 'repository' , $ object ) , $ repositoryDefinition ) -> setPublic ( true ) ; } } }
Define repositories.

@param array $objects
@param ContainerBuilder $container
Define repositories .