public function buildRepository(
        PersistenceHandler $persistenceHandler,
        SearchHandler $searchHandler,
        BackgroundIndexer $backgroundIndexer,
        RelationProcessor $relationProcessor
    ) {
        $repository = new $this->repositoryClass(
            $persistenceHandler,
            $searchHandler,
            $backgroundIndexer,
            $relationProcessor,
            array(
                'fieldType' => $this->fieldTypeCollectionFactory->getFieldTypes(),
                'nameableFieldTypes' => $this->fieldTypeNameableCollectionFactory->getNameableFieldTypes(),
                'role' => array(
                    'limitationTypes' => $this->roleLimitations,
                    'policyMap' => $this->policyMap,
                ),
                'languages' => $this->container->getParameter('languages'),
            ),
            new UserReference($this->container->getParameter('anonymous_user_id'))
        );

        return $repository;
    }
public function buildRepository(
        PersistenceHandler $persistenceHandler,
        SearchHandler $searchHandler,
        BackgroundIndexer $backgroundIndexer,
        RelationProcessor $relationProcessor
    ) {
        $repository = new $this->repositoryClass(
            $persistenceHandler,
            $searchHandler,
            $backgroundIndexer,
            $relationProcessor,
            array(
                'fieldType' => $this->fieldTypeCollectionFactory->getFieldTypes(),
                'nameableFieldTypes' => $this->fieldTypeNameableCollectionFactory->getNameableFieldTypes(),
                'role' => array(
                    'limitationTypes' => $this->roleLimitations,
                    'policyMap' => $this->policyMap,
                ),
                'languages' => $this->container->getParameter('languages'),
            ),
            new UserReference($this->container->getParameter('anonymous_user_id'))
        );

        return $repository;
    }
public function buildRepository ( PersistenceHandler $ persistenceHandler , SearchHandler $ searchHandler , BackgroundIndexer $ backgroundIndexer , RelationProcessor $ relationProcessor ) { $ repository = new $ this -> repositoryClass ( $ persistenceHandler , $ searchHandler , $ backgroundIndexer , $ relationProcessor , array ( 'fieldType' => $ this -> fieldTypeCollectionFactory -> getFieldTypes ( ) , 'nameableFieldTypes' => $ this -> fieldTypeNameableCollectionFactory -> getNameableFieldTypes ( ) , 'role' => array ( 'limitationTypes' => $ this -> roleLimitations , 'policyMap' => $ this -> policyMap , ) , 'languages' => $ this -> container -> getParameter ( 'languages' ) , ) , new UserReference ( $ this -> container -> getParameter ( 'anonymous_user_id' ) ) ) ; return $ repository ; }
Builds the main repository, heart of eZ Publish API.

This always returns the true inner Repository, please depend on ezpublish.api.repository and not this method
directly to make sure you get an instance wrapped inside Signal / Cache / * functionality.

@param \eZ\Publish\SPI\Persistence\Handler $persistenceHandler
@param \eZ\Publish\SPI\Search\Handler $searchHandler
@param \eZ\Publish\Core\Search\Common\BackgroundIndexer $backgroundIndexer

@return \eZ\Publish\API\Repository\Repository
Builds the main repository heart of eZ Publish API .