/** * Add the resource objects which you will be using in the init() method, * additionally add property for the resource object. */ public function __construct() { $this->session = \EasyGo\Session\Session::getInstance(new \EasyGo\Session\Handlers\FileHandler()); $this->eventDispatcher = EventDispatcher::getInstance(); }
/** * Return the instance of the session class */ public function getSession() { return Session::getInstance(); }