mirror of
https://github.com/flarum/framework.git
synced 2024-11-24 21:43:10 +08:00
6b7cf1b6bf
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.
11 lines
385 B
PHP
11 lines
385 B
PHP
<?php
|
|
|
|
// Require the extension's composer autoload file. This will enable all of our
|
|
// classes in the src directory to be autoloaded.
|
|
require __DIR__.'/vendor/autoload.php';
|
|
|
|
// 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';
|