/**
  * Sets flush message
  *
  * @access public
  *
  * @param string $message
  * @param string $type
  *
  * @return void
  */
 public function setMessage($message, $type = self::INFO)
 {
     if (!$this->session->has('flush')) {
         $this->session->set('flush', array($type => array($message)));
     } else {
         $flush = $this->session->get('flush');
         $flush[$type][] = $message;
         $this->session->set('flush', $flush);
     }
 }
 /**
  * Sets user
  *
  * @access public
  *
  * @param UserInterface $user
  *
  * @return void
  */
 public function setUser(UserInterface $user)
 {
     $this->session->set('user', $user);
 }