예제 #1
0
 /** Konstruktor
  * @param Context $connection
  * @param ModelRepository $modelRepository
  * @param ResourceRepository $resourceRepository
  * @param ActionRepository $actionRepository
  */
 public function __construct(Context $connection, ModelRepository $modelRepository, ResourceRepository $resourceRepository, ActionRepository $actionRepository)
 {
     parent::__construct($connection);
     $this->modelRepository = $modelRepository;
     $this->resourceRepository = $resourceRepository;
     $this->actionRepository = $actionRepository;
 }
예제 #2
0
 /**
  * @param Context $connection
  * @param RoleRepository $roleRepository
  * @param PermissionRepository $permissionRepository
  * @param ResourceRepository $resourceRepository
  */
 public function __construct(Context $connection, RoleRepository $roleRepository, PermissionRepository $permissionRepository, ResourceRepository $resourceRepository)
 {
     parent::__construct($connection);
     $this->roleRepository = $roleRepository;
     $this->permissionRepository = $permissionRepository;
     $this->resourceRepository = $resourceRepository;
 }