addBootstrapper() public method

public addBootstrapper ( $bootstrapper )
 /**
  * @param ConfigureClientView $event
  */
 public function addAssets(ConfigureWebApp $event)
 {
     if ($event->isForum()) {
         $event->addAssets([__DIR__ . '/../../js/forum/dist/extension.js', __DIR__ . '/../../less/forum/extension.less']);
         $event->addBootstrapper('flarum/lock/main');
     }
     if ($event->isAdmin()) {
         $event->addAssets([__DIR__ . '/../../js/admin/dist/extension.js']);
         $event->addBootstrapper('flarum/lock/main');
     }
 }
 /**
  * Modifies the client view for the Admin.
  *
  * @param ConfigureWebApp $event
  */
 public function addAdminAssets(ConfigureWebApp $event)
 {
     if ($event->isAdmin()) {
         $event->addAssets([__DIR__ . '/../../less/admin/settingsPage.less', __DIR__ . '/../../js/admin/dist/extension.js']);
         $event->addBootstrapper('pushedx/realtime-chat/main');
     }
 }