Пример #1
0
 public function __construct(array $config)
 {
     parent::__construct($config);
     $redis = $this->getService();
     $token = $this->getToken();
     $this->data = $redis->hGetAll($token) ?: array();
     $this->saved_keys = array_keys($this->data);
 }
Пример #2
0
 public function __construct(array $config)
 {
     (new \Owl\Parameter\Validator())->execute($config, ['request' => ['type' => 'object', 'instanceof' => '\\Owl\\Http\\Request'], 'response' => ['type' => 'object', 'instanceof' => '\\Owl\\Http\\Response']]);
     parent::__construct($config);
 }