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();
}