/**
  * @param EntityManager                $em                  The entity
  *                                                          manager
  * @param AclHelper                    $aclHelper           The ACL helper
  * @param string                       $locale              The current
  *                                                          locale
  * @param string                       $permission          The permission
  */
 public function __construct(EntityManager $em, AclHelper $aclHelper, $locale, $permission, AuthorizationCheckerInterface $authorizationChecker)
 {
     parent::__construct($em, $aclHelper);
     $this->locale = $locale;
     $this->authorizationChecker = $authorizationChecker;
     $this->setPermissionDefinition(new PermissionDefinition(array($permission), 'Kunstmaan\\NodeBundle\\Entity\\Node', 'n'));
 }
コード例 #2
0
 /**
  * @param EntityManager $em The entity manager
  * @param MediaManager $mediaManager The media manager
  * @param Folder $folder The current folder
  * @param Request $request The request object
  */
 public function __construct(EntityManager $em, MediaManager $mediaManager, Folder $folder, Request $request)
 {
     parent::__construct($em);
     $this->setAdminType(new MediaType($mediaManager, $em));
     $this->folder = $folder;
     $this->request = $request;
 }
 /**
  * @param EntityManager $em The entity manager
  * @param AclHelper $aclHelper The acl helper
  * @param DomainConfigurationInterface $domainConfiguration
  */
 public function __construct(EntityManager $em, AclHelper $aclHelper = null, DomainConfigurationInterface $domainConfiguration)
 {
     parent::__construct($em, $aclHelper);
     $this->domainConfiguration = $domainConfiguration;
     $this->setAdminType(new RedirectAdminType($domainConfiguration));
     $this->setAdminTypeOptions(array('domainConfiguration' => $domainConfiguration));
 }
 /**
  * @param EntityManager $em The entity manager
  * @param AclHelper $aclHelper The acl helper
  */
 public function __construct(EntityManager $em, AclHelper $aclHelper = null)
 {
     parent::__construct($em, $aclHelper);
     $this->setListTemplate('KunstmaanLeadGenerationBundle:AdminList:popup-list.html.twig');
     $this->setEditTemplate('KunstmaanLeadGenerationBundle:AdminList:popup-edit.html.twig');
     $this->setAddTemplate('KunstmaanLeadGenerationBundle:AdminList:popup-edit.html.twig');
 }
コード例 #5
0
 /**
  * @param EntityManager $em        The entity manager
  * @param AclHelper     $aclHelper The acl helper
  * @param Menu          $menu
  */
 public function __construct(EntityManager $em, AclHelper $aclHelper = null, Menu $menu)
 {
     parent::__construct($em, $aclHelper);
     $this->setListTemplate('KunstmaanMenuBundle:AdminList:list-menu-item.html.twig');
     $this->setAddTemplate('KunstmaanMenuBundle:AdminList:edit-menu-item.html.twig');
     $this->setEditTemplate('KunstmaanMenuBundle:AdminList:edit-menu-item.html.twig');
     $this->menu = $menu;
 }
コード例 #6
0
 /**
  * @param EntityManager $em         The entity manager
  * @param AclHelper     $aclHelper  The ACL helper
  * @param string        $permission The permission
  */
 public function __construct(EntityManager $em, AclHelper $aclHelper, $permission)
 {
     parent::__construct($em, $aclHelper);
     $this->setPermissionDefinition(new PermissionDefinition(array($permission), 'Kunstmaan\\NodeBundle\\Entity\\Node', 'n'));
 }
コード例 #7
0
 /**
  * @param EntityManager $em        The entity manager
  * @param AclHelper     $aclHelper The acl helper
  */
 public function __construct(EntityManager $em, AclHelper $aclHelper = null)
 {
     parent::__construct($em, $aclHelper);
     $this->setAdminType(new TagAdminType());
 }
 /**
  * @param EntityManager   $em              The entity manager
  * @param NodeTranslation $nodeTranslation The node translation
  */
 public function __construct(EntityManager $em, $nodeTranslation)
 {
     parent::__construct($em);
     $this->nodeTranslation = $nodeTranslation;
 }
 /**
  * @param EntityManager $em         The entity manager
  * @param AclHelper     $aclHelper  The ACL helper
  * @param string        $locale     The current locale
  * @param string        $permission The permission
  */
 public function __construct(EntityManager $em, AclHelper $aclHelper, $locale, $permission)
 {
     parent::__construct($em, $aclHelper);
     $this->locale = $locale;
 }
コード例 #10
0
 /**
  * @param EntityManager $em        The entity manager
  * @param AclHelper     $aclHelper The acl helper
  */
 public function __construct(EntityManager $em, AclHelper $aclHelper = null)
 {
     parent::__construct($em, $aclHelper);
 }