コード例 #1
0
ファイル: dispatcher.php プロジェクト: pombredanne/ArcherSys
	public function __construct($params) {
		$this->appName = 'contacts';
		parent::__construct($this->appName, $params);
		$this->container = $this->getContainer();
		$this->server = $this->container->getServer();
		$this->app = new App($this->container->query('API')->getUserId());
		$this->registerServices();
		$this->container->registerMiddleware('HttpMiddleware');
	}
コード例 #2
0
ファイル: dispatcher.php プロジェクト: alid-wise/contacts
 public function __construct($params)
 {
     $this->appName = 'contacts';
     parent::__construct($this->appName, $params);
     $this->container = $this->getContainer();
     $this->server = $this->container->getServer();
     $userId = \OC::$server->getUserSession()->getUser()->getUID();
     $this->app = new App($userId);
     $this->registerServices();
     $this->container->registerMiddleware('HttpMiddleware');
 }
コード例 #3
0
 public function __construct($params)
 {
     $this->appName = 'contacts';
     parent::__construct($this->appName, $params);
     $this->container = $this->getContainer();
     $this->server = $this->container->getServer();
     $user = \OC::$server->getUserSession()->getUser();
     if (is_null($user)) {
         \OC_Util::redirectToDefaultPage();
     }
     $userId = $user->getUID();
     $this->app = new App($userId);
     $this->registerServices();
     $this->container->registerMiddleware('HttpMiddleware');
 }