Пример #1
0
 /**
  * Constructor.
  *
  * @param   KObjectConfig $config Configuration options
  */
 public function __construct(KObjectConfig $config)
 {
     parent::__construct($config);
     $this->_secret = $config->secret;
     $this->_max_age = $config->max_age;
     $this->_check_user = $config->check_user;
     $this->addCommandCallback('before.dispatch', 'authenticateRequest');
 }
Пример #2
0
 /**
  * Constructor
  *
  * @param KObjectConfig $config Configuration options
  */
 public function __construct(KObjectConfig $config)
 {
     parent::__construct($config);
     $this->addCommandCallback('before.post', 'authenticateRequest');
     $this->addCommandCallback('after.get', 'signResponse');
 }