I am trying to replicate the Auth class more or less from Vokuro. Added these lines to my project's app/config/services.php:
at the top:
use test\Auth\Auth;
at the bottom:
$di->set('auth', function () {
return new Auth();
});
inside app/plugins I have a file called Auth.php:
namespace test\Auth;
use Phalcon\Mvc\User\Component;
use test\Models\Users
use test\Models\RememberTokens;
use test\Models\SuccessLogins;
use test\Models\FailedLogins;
class Auth extends Component{
...
And I am getting :
PHP Fatal error: Class 'test\Auth\Auth' not found in /var/www/html/test/app/config/services.php on line 96
Any ideas? Do I need to register the "plugins" directory somewhere? What am I missing? TIA!