public function onKernelController(FilterControllerEvent $event) { $controller = $event->getController(); if (!is_array($controller)) { return; } $controller = $controller[0]; if (!$controller instanceof ProfileController) { return; } $this->configuration->setShowFields($this->container->getParameter('symfonian_id.admin.profile_fields')); $this->configuration->setFormClass($this->container->getParameter('symfonian_id.admin.security.change_password')); }
public function onKernelController(FilterControllerEvent $event) { $controller = $event->getController(); if (!is_array($controller)) { return; } $controller = $controller[0]; if (!$controller instanceof UserController) { return; } $this->configuration->setFormClass($this->container->getParameter('symfonian_id.admin.security.user_form')); $this->configuration->setEntityClass($this->container->getParameter('symfonian_id.admin.security.user_entity')); $this->configuration->setShowFields($this->container->getParameter('symfonian_id.admin.security.show_fields')); $this->configuration->setGridFields($this->container->getParameter('symfonian_id.admin.security.grid_fields')); }
public function onKernelController(FilterControllerEvent $event) { $controller = $event->getController(); if (!is_array($controller)) { return; } $controller = $controller[0]; if (!$controller instanceof CrudController) { return; } $this->configuration->setNewTemplate($this->container->getParameter('symfonian_id.admin.themes.new_view')); $this->configuration->setEditTemplate($this->container->getParameter('symfonian_id.admin.themes.edit_view')); $this->configuration->setShowTemplate($this->container->getParameter('symfonian_id.admin.themes.show_view')); $this->configuration->setListTemplate($this->container->getParameter('symfonian_id.admin.themes.list_view')); $this->configuration->setFilter($this->container->getParameter('symfonian_id.admin.filter')); $this->configuration->setAjaxTemplate($this->container->getParameter('symfonian_id.admin.themes.ajax_template'), $this->container->getParameter('symfonian_id.admin.list.use_ajax')); }