public function bind(\Nethgui\Controller\RequestInterface $request)
 {
     if (!$request->getUser()->getCredential('username') === 'root') {
         throw new \Nethgui\Exception\HttpException('Not found', 404, 1417136236);
     }
     $this->setUserName('root');
     parent::bind($request);
 }
Ejemplo n.º 2
0
 public function bind(\Nethgui\Controller\RequestInterface $request)
 {
     $userName = $this->getAdapter()->getKeyValue();
     $this->setUserName($userName);
     parent::bind($request);
 }
 public function bind(\Nethgui\Controller\RequestInterface $request)
 {
     $this->setUserName(\Nethgui\array_end($request->getPath()));
     parent::bind($request);
 }