public function getBag($name)
    {
        $name = strtolower($name);

        if (empty($this->bags[$name])) {
            throw new \UnexpectedValueException(sprintf('Bag %s not exists', $name));
        }

        return $this->bags[$name];
    }
public function getBag($name)
    {
        $name = strtolower($name);

        if (empty($this->bags[$name])) {
            throw new \UnexpectedValueException(sprintf('Bag %s not exists', $name));
        }

        return $this->bags[$name];
    }
public function getBag ( $ name ) { $ name = strtolower ( $ name ) ; if ( empty ( $ this -> bags [ $ name ] ) ) { throw new \ UnexpectedValueException ( sprintf ( 'Bag %s not exists' , $ name ) ) ; } return $ this -> bags [ $ name ] ; }
Get session bag.

@param   string $name Bag name to get.

@throws  \UnexpectedValueException
@return  SessionBagInterface

@since   2.0
Get session bag .