hi everyone, I am trying to create google-oauth2 flarum extension. I am still pretty new to PHP and composer and stuff. Currently I am facing this error: FastCGI sent in stderr: "PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class Flarum\Auth\Google\Listener\AddClientAssets does not exist' in /var/www/flarum/vendor/illuminate/container/Container.php:741
the whole stacktrace:
2016/03/16 14:58:16 [error] 4079#0: *1 FastCGI sent in stderr: "PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class Flarum\Auth\Google\Listener\AddClientAssets does not exist' in /var/www/flarum/vendor/illuminate/container/Container.php:741
Stack trace:
#0 /var/www/flarum/vendor/illuminate/container/Container.php(741): ReflectionClass->__construct('Flarum\\Auth\\Goo...')
#1 /var/www/flarum/vendor/illuminate/container/Container.php(631): Illuminate\Container\Container->build('Flarum\\Auth\\Goo...', Array)
#2 /var/www/flarum/vendor/flarum/core/src/Foundation/Application.php(484): Illuminate\Container\Container->make('Flarum\\Auth\\Goo...', Array)
#3 /var/www/flarum/vendor/illuminate/events/Dispatcher.php(149): Flarum\Foundation\Application->make('Flarum\\Auth\\Goo...')
#4 /var/www/flarum/vendor/illuminate/events/Dispatcher.php(135): Illuminate\Events\Dispatcher->resolveSubscriber('Flarum\\Auth\\Goo...')
#5 /var/www/flarum/extensions/flarum-auth-google/bootstrap.php(16): Illuminate\Events\Dispatcher->subscribe('Flarum\\Auth\\Goo...')
I have modified my composer / auload_psr4.php (not sure if it is needed, but I found something like this one line)
'Flarum\\Auth\\GitHub\\' => array($baseDir . '/extensions/flarum-auth-github/src'),
'Flarum\\Auth\\Facebook\\' => array($baseDir . '/extensions/flarum-auth-facebook/src'),
'Flarum\\Auth\\Google\\' => array($baseDir . '/extensions/flarum-auth-google/src'),
so does not that mean I have make flarum-auth-google/src discoverable by loaders?