$di['dispatcher'] = function() use ($di) {
$eventsManager = $di->getShared('eventsManager');
$security = new \Phalcon\UserPlugin\Plugin\Security($di);
$eventsManager->attach('dispatch', $security);
$dispatcher = new \Phalcon\Mvc\Dispatcher();
$dispatcher->setEventsManager($eventsManager);
return $dispatcher;
};
to my project, it's report fatal error: Call to a member function hasRememberMe() on a non-object.
I need setAuth first? Could you uploads any demo how to use it? Thanks.
when I insert
to my project, it's report fatal error: Call to a member function hasRememberMe() on a non-object. I need setAuth first? Could you uploads any demo how to use it? Thanks.