original_string: protected function boot(): void
      {
          // boot extensions
          foreach ($this->extensionManager->getExtensions() as $extension) {
              if ($extension->isActivated()) {
                  $extension->boot();
              }
          }
  
          // boot app
          $this->dispatch(new RoutesWillBeLoaded($this->router));
          $this->dispatch(new RoutesHaveBeenLoaded($this->router));
  
          // send back responses
          try {
              $response = $this->router->getResponse();
              $response->send();
          } catch (RouteNotFoundException $exception) {
              throw new HttpNotFoundException();
          } catch (ResourceNotFoundException $exception) {
              throw new HttpNotFoundException();
          } catch (MethodNotAllowedException $exception) {
              throw new HttpMethodNotAllowedException();
          }
      }
code: protected function boot(): void
      {
          // boot extensions
          foreach ($this->extensionManager->getExtensions() as $extension) {
              if ($extension->isActivated()) {
                  $extension->boot();
              }
          }
  
          // boot app
          $this->dispatch(new RoutesWillBeLoaded($this->router));
          $this->dispatch(new RoutesHaveBeenLoaded($this->router));
  
          // send back responses
          try {
              $response = $this->router->getResponse();
              $response->send();
          } catch (RouteNotFoundException $exception) {
              throw new HttpNotFoundException();
          } catch (ResourceNotFoundException $exception) {
              throw new HttpNotFoundException();
          } catch (MethodNotAllowedException $exception) {
              throw new HttpMethodNotAllowedException();
          }
      }
code_tokens: protected function boot ( ) : void { // boot extensions foreach ( $ this -> extensionManager -> getExtensions ( ) as $ extension ) { if ( $ extension -> isActivated ( ) ) { $ extension -> boot ( ) ; } } // boot app $ this -> dispatch ( new RoutesWillBeLoaded ( $ this -> router ) ) ; $ this -> dispatch ( new RoutesHaveBeenLoaded ( $ this -> router ) ) ; // send back responses try { $ response = $ this -> router -> getResponse ( ) ; $ response -> send ( ) ; } catch ( RouteNotFoundException $ exception ) { throw new HttpNotFoundException ( ) ; } catch ( ResourceNotFoundException $ exception ) { throw new HttpNotFoundException ( ) ; } catch ( MethodNotAllowedException $ exception ) { throw new HttpMethodNotAllowedException ( ) ; } }
docstring: boot all services
  
  @throws HttpMethodNotAllowedException
  @throws HttpNotFoundException
docstring_tokens: boot all services