Security::class, EntityManagerInterface::class => EntityManagerInterface::class, UrlGeneratorInterface::class => UrlGeneratorInterface::class, SessionInterface::class => SessionInterface::class, PaginatorInterface::class => PaginatorInterface::class, RequestStack::class => RequestStack::class, EventDispatcherInterface::class => EventDispatcherInterface::class, TranslatorInterface::class => TranslatorInterface::class, LoggerInterface::class => LoggerInterface::class, SettingSolver::class => SettingSolver::class, ComponentContainer::class => ComponentContainer::class, FileContainer::class => FileContainer::class, NewsletterContainer::class => NewsletterContainer::class, ReminderContainer::class => ReminderContainer::class, NewsContainer::class => NewsContainer::class, PageContainer::class => PageContainer::class, SiteContainer::class => SiteContainer::class, TicketContainer::class => TicketContainer::class, TicketMessageContainer::class => TicketMessageContainer::class, GroupUserContainer::class => GroupUserContainer::class, UserContainer::class => UserContainer::class, SiteSettingContainer::class => SiteSettingContainer::class, ] ); } public function getReferer(Request $request): ?string { return $request->headers->get('referer'); } public function getEntityManager(): EntityManagerInterface { return $this->get(EntityManagerInterface::class); } public function getRouter(): UrlGeneratorInterface { return $this->get(UrlGeneratorInterface::class); } public function getSession(): SessionInterface { return $this->get(SessionInterface::class); } public function getSecurity(): Security { return $this->get(Security::class); } public function getPaginator(): PaginatorInterface { return $this->get(PaginatorInterface::class); } public function getRequestStack(): RequestStack { return $this->get(RequestStack::class); } public function getEventDispatcher(): EventDispatcherInterface { return $this->get(EventDispatcherInterface::class); } public function getTranslator(): TranslatorInterface { return $this->get(TranslatorInterface::class); } public function getLogger(): LoggerInterface { return $this->get(LoggerInterface::class); } public function getSettingSolver(): SettingSolver { return $this->get(SettingSolver::class); } public function getSettingValue($entity, $settingName) { return $this->getSettingSolver()->getSettingValue($entity, $settingName); } public function getComponentContainer(): ComponentContainer { return $this->get(ComponentContainer::class); } public function getFileContainer(): FileContainer { return $this->get(FileContainer::class); } public function getNewsletterContainer(): NewsletterContainer { return $this->get(NewsletterContainer::class); } public function getReminderContainer(): ReminderContainer { return $this->get(ReminderContainer::class); } public function getNewsContainer(): NewsContainer { return $this->get(NewsContainer::class); } public function getPageContainer(): PageContainer { return $this->get(PageContainer::class); } public function getSiteContainer(): SiteContainer { return $this->get(SiteContainer::class); } public function getTicketContainer(): TicketContainer { return $this->get(TicketContainer::class); } public function getTicketMessageContainer(): TicketMessageContainer { return $this->get(TicketMessageContainer::class); } public function getGroupUserContainer(): GroupUserContainer { return $this->get(GroupUserContainer::class); } public function getUserContainer(): UserContainer { return $this->get(UserContainer::class); } public function getSiteSettingContainer(): SiteSettingContainer { return $this->get(SiteSettingContainer::class); } }