示例#1
0
 public function __construct(Application $app)
 {
     parent::__construct($app);
     $manager = new AccessControlManager($app);
     $manager->load();
     $this->accessControls = $manager->get();
 }
示例#2
0
 public function __construct(Application $app)
 {
     parent::__construct($app);
     $manager = new RolesManager();
     $manager->load();
     $this->roles = $manager->get();
 }
示例#3
0
 public function __construct(Application $app)
 {
     parent::__construct($app);
     $this->rolesManager = new RolesManager();
     $this->rolesManager->load();
     $this->providersManager = new ProvidersManager($app);
     $this->providersManager->load();
 }
示例#4
0
 public function __construct(Application $app)
 {
     parent::__construct($app);
     $manager = new FirewallsManager($app);
     $manager->load();
     $this->firewalls = $manager->get();
     $this->accessControl = new AccessControlHandler($app);
     $this->providerHandler = new ProvidersHandler($app);
 }
示例#5
0
 public function __construct($app, $module, $name, $action, $vars = [])
 {
     parent::__construct($app);
     $this->formBuilder = new FormBuilder();
     $this->setPage($app, $this);
     $this->page->attach($this->getService('templater'));
     $this->setModule($module);
     $this->setAction($action);
     $this->setName($name);
 }
示例#6
0
 public function __construct(Application $app)
 {
     parent::__construct($app);
 }
示例#7
0
文件: Page.php 项目: DamdamD/Website
 public function __construct(Application $app, Controller $controller = null)
 {
     parent::__construct($app);
     $this->controller = $controller;
     $this->viewFinder = new ViewFinder();
 }
示例#8
0
 public function __construct(Application $app, $manager)
 {
     parent::__construct($app);
     $this->manager = $manager;
 }