concrete/src/Session/SessionFactory.php
public function createSession()
    {
        $config = $this->app['config']['concrete.session'];
        $storage = $this->getSessionStorage($config);

        // We have to use "build" here because we have bound this classname to this factory method
        $session = $this->app->build(SymfonySession::class, [$storage]);
        $session->setName(array_get($config, 'name'));

        /* @TODO Remove this call. We should be able to set this against the request somewhere much higher than this */
        /*       At the very least we should have an observer that can track the session status and set this */
        $this->app->make(\Concrete\Core\Http\Request::class)->setSession($session);

        return $session;
    }
public function createSession()
    {
        $config = $this->app['config']['concrete.session'];
        $storage = $this->getSessionStorage($config);

        // We have to use "build" here because we have bound this classname to this factory method
        $session = $this->app->build(SymfonySession::class, [$storage]);
        $session->setName(array_get($config, 'name'));

        /* @TODO Remove this call. We should be able to set this against the request somewhere much higher than this */
        /*       At the very least we should have an observer that can track the session status and set this */
        $this->app->make(\Concrete\Core\Http\Request::class)->setSession($session);

        return $session;
    }
public function createSession ( ) { $ config = $ this -> app [ 'config' ] [ 'concrete.session' ] ; $ storage = $ this -> getSessionStorage ( $ config ) ; // We have to use "build" here because we have bound this classname to this factory method $ session = $ this -> app -> build ( SymfonySession :: class , [ $ storage ] ) ; $ session -> setName ( array_get ( $ config , 'name' ) ) ; /* @TODO Remove this call. We should be able to set this against the request somewhere much higher than this */ /*       At the very least we should have an observer that can track the session status and set this */ $ this -> app -> make ( \ Concrete \ Core \ Http \ Request :: class ) -> setSession ( $ session ) ; return $ session ; }
Create a new symfony session object
This method MUST NOT start the session.

@return \Symfony\Component\HttpFoundation\Session\Session

@throws \Illuminate\Contracts\Container\BindingResolutionException
Create a new symfony session object This method MUST NOT start the session .