public function init()
    {
        parent::init();
        $self = $this;
        //Close session on end of request
        $this->app->once(Reaction\RequestApplicationInterface::EVENT_REQUEST_END, function() use (&$self) {
            return $self->close();
        });

        if ($this->getIsActive()) {
            Reaction::warning('Session is already started');
            $this->updateFlashCounters();
        }
    }
public function init()
    {
        parent::init();
        $self = $this;
        //Close session on end of request
        $this->app->once(Reaction\RequestApplicationInterface::EVENT_REQUEST_END, function() use (&$self) {
            return $self->close();
        });

        if ($this->getIsActive()) {
            Reaction::warning('Session is already started');
            $this->updateFlashCounters();
        }
    }
public function init ( ) { parent :: init ( ) ; $ self = $ this ; //Close session on end of request $ this -> app -> once ( Reaction \ RequestApplicationInterface :: EVENT_REQUEST_END , function ( ) use ( & $ self ) { return $ self -> close ( ) ; } ) ; if ( $ this -> getIsActive ( ) ) { Reaction :: warning ( 'Session is already started' ) ; $ this -> updateFlashCounters ( ) ; } }
Initializes the application component.
This method is required by IApplicationComponent and is invoked by application.
Initializes the application component . This method is required by IApplicationComponent and is invoked by application .