eZ\Publish\Core\Repository\URLAliasService::__construct PHP Метод

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

Setups service with reference to repository object that created it & corresponding handler.
public __construct ( eZ\Publish\API\Repository\Repository $repository, eZ\Publish\SPI\Persistence\Content\UrlAlias\Handler $urlAliasHandler, array $settings = [] )
$repository eZ\Publish\API\Repository\Repository
$urlAliasHandler eZ\Publish\SPI\Persistence\Content\UrlAlias\Handler
$settings array
    public function __construct(RepositoryInterface $repository, Handler $urlAliasHandler, array $settings = array())
    {
        $this->repository = $repository;
        $this->urlAliasHandler = $urlAliasHandler;
        // Union makes sure default settings are ignored if provided in argument
        $this->settings = $settings + array('showAllTranslations' => false);
        // Get prioritized languages from language service to not have to call it several times
        $this->settings['prioritizedLanguageList'] = $repository->getContentLanguageService()->getPrioritizedLanguageCodeList();
    }