mirror of
https://github.com/flarum/core.git
synced 2025-08-06 16:36:47 +02:00
Rework extension bootstrapping
System JS modules don't execute when they're registered, so we need to import them explicitly. While we're at it, we may as well make the locale bootstrapper a module too.
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
// classes in the src directory to be autoloaded.
|
||||
require __DIR__.'/vendor/autoload.php';
|
||||
|
||||
// Register our service provider with the Flarum application. In here we can
|
||||
// register bindings and execute code when the application boots.
|
||||
return $this->app->register('{{namespace}}\{{classPrefix}}ServiceProvider');
|
||||
// Return the name of our Extension class. Flarum will register it as a service
|
||||
// provider, allowing it to register bindings and execute code when the
|
||||
// application boots.
|
||||
return '{{namespace}}\Extension';
|
||||
|
Reference in New Issue
Block a user