src/Charcoal/Admin/AdminAction.php
public function init(RequestInterface $request)
    {
        if (!session_id()) {
            session_cache_limiter(false);
            session_start();
        }

        $this->setDataFromRequest($request);
        $this->authRedirect($request);

        return parent::init($request);
    }
public function init(RequestInterface $request)
    {
        if (!session_id()) {
            session_cache_limiter(false);
            session_start();
        }

        $this->setDataFromRequest($request);
        $this->authRedirect($request);

        return parent::init($request);
    }
public function init ( RequestInterface $ request ) { if ( ! session_id ( ) ) { session_cache_limiter ( false ) ; session_start ( ) ; } $ this -> setDataFromRequest ( $ request ) ; $ this -> authRedirect ( $ request ) ; return parent :: init ( $ request ) ; }
Action's init method is called automatically from `charcoal-app`'s Action Route.

For admin actions, initializations is:

- to start a session, if necessary
- to authenticate
- to initialize the action data with the PSR Request object

@param RequestInterface $request The request to initialize.
@return boolean
@see \Charcoal\App\Route\TemplateRoute::__invoke()
Action s init method is called automatically from charcoal - app s Action Route .