booting() public method

Register a new boot listener.
public booting ( mixed $callback ) : void
$callback mixed
return void
Beispiel #1
0
 public function subscribe(Dispatcher $events)
 {
     if (defined('FLARUM_TENANT')) {
         $events->listen(ConfigureClientView::class, [$this, 'setFilename']);
         Application::booting(function ($app) {
             $app->make('config')->set('cache.prefix', FLARUM_TENANT);
         });
     }
 }