Nette\Http\SessionSection::__construct PHP Method

__construct() public method

Do not call directly. Use Session::getSection().
public __construct ( Session $session, $name )
$session Session
    public function __construct(Session $session, $name)
    {
        if (!is_string($name)) {
            throw new Nette\InvalidArgumentException('Session namespace must be a string, ' . gettype($name) . ' given.');
        }
        $this->session = $session;
        $this->name = $name;
    }