Exemplo n.º 1
0
 /**
  * @param FormFactoryInterface $factory
  * @param FilterUtility $util
  * @param ActivityManager $activityManager
  * @param ActivityListChainProvider $activityListChainProvider
  * @param ActivityListFilterHelper $activityListFilterHelper
  * @param EntityRoutingHelper $entityRoutingHelper
  * @param Manager $queryDesignerManager
  * @param DatagridHelper $datagridHelper
  */
 public function __construct(FormFactoryInterface $factory, FilterUtility $util, ActivityManager $activityManager, ActivityListChainProvider $activityListChainProvider, ActivityListFilterHelper $activityListFilterHelper, EntityRoutingHelper $entityRoutingHelper, Manager $queryDesignerManager, DatagridHelper $datagridHelper)
 {
     parent::__construct($factory, $util);
     $this->activityManager = $activityManager;
     $this->activityListChainProvider = $activityListChainProvider;
     $this->activityListFilterHelper = $activityListFilterHelper;
     $this->entityRoutingHelper = $entityRoutingHelper;
     $this->queryDesignerManager = $queryDesignerManager;
     $this->datagridHelper = $datagridHelper;
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function getMetadata()
 {
     $metadata = parent::getMetadata();
     $entityIds = [];
     $configIds = $this->entityConfigProvider->getIds();
     foreach ($configIds as $configId) {
         $className = $configId->getClassName();
         if ($this->extendConfigProvider->getConfig($className)->in('state', [ExtendScope::STATE_ACTIVE, ExtendScope::STATE_UPDATE])) {
             $classMetadata = $this->doctrine->getManagerForClass($className)->getClassMetadata($className);
             $identifiers = $classMetadata->getIdentifier();
             $entityIds[$className] = array_shift($identifiers);
         }
     }
     $metadata['entity_ids'] = $entityIds;
     return $metadata;
 }
Exemplo n.º 3
0
 /**
  * @param FormFactoryInterface $factory
  * @param FilterUtility        $util
  * @param Registry             $doctrine
  * @param AclHelper            $aclHelper
  */
 public function __construct(FormFactoryInterface $factory, FilterUtility $util, Registry $doctrine, AclHelper $aclHelper)
 {
     parent::__construct($factory, $util);
     $this->doctrine = $doctrine;
     $this->aclHelper = $aclHelper;
 }
Exemplo n.º 4
0
 /**
  * @param FormFactoryInterface $factory
  * @param FilterUtility $util
  * @param Manager $queryDesignerManager
  */
 public function __construct(FormFactoryInterface $factory, FilterUtility $util, Manager $queryDesignerManager)
 {
     parent::__construct($factory, $util);
     $this->queryDesignerManager = $queryDesignerManager;
 }