framework/stubs/extension/bootstrap.php

15 lines
467 B
PHP
Raw Normal View History

2015-06-08 13:26:19 +08:00
<?php
2016-01-21 05:13:55 +08:00
use Illuminate\Contracts\Events\Dispatcher;
use {{namespace}}\Listener;
2015-06-08 13:26:19 +08:00
2016-01-21 05:13:55 +08:00
// Return a function that registers the extension with Flarum. This is
// the place to listen to events, register bindings with the container
// and execute code when the application boots.
//
// Any typehinted argument of this function is automatically resolved
// by the IoC container.
return function (Dispatcher $events) {
$events->subscribe(Listener\AddClientAssets::class);
};