protected function setUp()
 {
     $f = function ($request, &$message) {
         $message = 'L-A-Z-Y';
         return 0;
     };
     $request = array('X' => \Nethgui\Controller\NullRequest::getInstance()->getUser(), 'Y' => 'RX', 'Z' => 'AX');
     $this->object = new \Nethgui\Authorization\LazyAccessControlResponse($f, $request);
 }
示例#2
0
 /**
  *
  * @param \Nethgui\Authorization\UserInterface $user
  * @param \Nethgui\Model\SystemTasks $systemTasks
  */
 public function __construct(\Nethgui\Authorization\UserInterface $user, \Nethgui\Model\SystemTasks $systemTasks)
 {
     $this->eventQueue = array('post-process' => array(), 'post-response' => array(), 'now' => array());
     $this->user = $user;
     $this->systemTasks = $systemTasks;
     $this->databases = array('SESSION' => new SessionDatabase());
     $this->phpWrapper = new \Nethgui\Utility\PhpWrapper(__CLASS__);
     $this->request = \Nethgui\Controller\NullRequest::getInstance();
     $this->conditions = array();
 }