src/ULogin/Auth.php
private function hasSession() {

        if(DI::getDefault()->has('session') === true) {

            // get instance of session class
            $this->session = DI::getDefault()->getSession();

            if($this->session->getId() === '') {
                $this->session->start();
            }

            return true;
        }

        return false;
    }
private function hasSession() {

        if(DI::getDefault()->has('session') === true) {

            // get instance of session class
            $this->session = DI::getDefault()->getSession();

            if($this->session->getId() === '') {
                $this->session->start();
            }

            return true;
        }

        return false;
    }
private function hasSession ( ) { if ( DI :: getDefault ( ) -> has ( 'session' ) === true ) { // get instance of session class $ this -> session = DI :: getDefault ( ) -> getSession ( ) ; if ( $ this -> session -> getId ( ) === '' ) { $ this -> session -> start ( ) ; } return true ; } return false ; }
Check if \Phalcon\Di has session service

@return bool
Check if \ Phalcon \ Di has session service