public function init($options = [])
    {
        $auth = new Authentication();

        if (!$auth->check()) {
            $url = (isset($options['auth_login_url']))
            ? $options['auth_login_url']
            : '/auth/login';

            $this->redirect = $url;
        }
    }
public function init($options = [])
    {
        $auth = new Authentication();

        if (!$auth->check()) {
            $url = (isset($options['auth_login_url']))
            ? $options['auth_login_url']
            : '/auth/login';

            $this->redirect = $url;
        }
    }
public function init ( $ options = [ ] ) { $ auth = new Authentication ( ) ; if ( ! $ auth -> check ( ) ) { $ url = ( isset ( $ options [ 'auth_login_url' ] ) ) ? $ options [ 'auth_login_url' ] : '/auth/login' ; $ this -> redirect = $ url ; } }
Group init function.

@param array $options

@return void
Group init function .