lib/Auth/Acl.php
private function initiateContext(Model $modelObject = null)
    {
        $context = $this->getContextFromAuth($modelObject);
        $this->registerContext($context);
        $this->currentContext = $context->getId();
        //\dump($context->getRoles()->toArray());exit;
        return $context;
    }
private function initiateContext(Model $modelObject = null)
    {
        $context = $this->getContextFromAuth($modelObject);
        $this->registerContext($context);
        $this->currentContext = $context->getId();
        //\dump($context->getRoles()->toArray());exit;
        return $context;
    }
private function initiateContext ( Model $ modelObject = null ) { $ context = $ this -> getContextFromAuth ( $ modelObject ) ; $ this -> registerContext ( $ context ) ; $ this -> currentContext = $ context -> getId ( ) ; //\dump($context->getRoles()->toArray());exit; return $ context ; }
Initiate a context
@param  Model $modelObject Optional protected model
@return AclContextContract
Initiate a context