Exemplo n.º 1
0
 protected function setInputValues()
 {
     if (Session::exists($this->_inputSessionKey)) {
         $values = Session::get($this->_inputSessionKey);
         foreach ($values as $key => $value) {
             $item = input()->getObject($key, new InputItem($key), ['get', 'post'])->setValue($value);
             if (request()->getMethod() === 'post') {
                 input()->post[$key] = $item;
             } else {
                 input()->get[$key] = $item;
             }
         }
         Session::destroy($this->_inputSessionKey);
     }
 }
Exemplo n.º 2
0
 protected function parse()
 {
     $this->messages = Session::get(self::KEY);
 }