original_string: protected function loadRoutes()
      {
          $this->hook->trigger(self::HOOK_LOAD_ROUTES_BEFORE);
          if ($this->config->get('parable.routes')) {
              foreach ($this->config->get('parable.routes') as $routesClass) {
                  $routes = \Parable\DI\Container::create($routesClass);
  
                  if (!($routes instanceof \Parable\Framework\Routing\AbstractRouting)) {
                      throw new \Parable\Framework\Exception(
                          "{$routesClass} does not extend \Parable\Framework\Routing\AbstractRouting"
                      );
                  }
  
                  // Load the routes
                  $routes->load();
              }
          } else {
              $this->hook->trigger(self::HOOK_LOAD_ROUTES_NO_ROUTES_FOUND);
          }
          $this->hook->trigger(self::HOOK_LOAD_ROUTES_AFTER);
          return $this;
      }
code: protected function loadRoutes()
      {
          $this->hook->trigger(self::HOOK_LOAD_ROUTES_BEFORE);
          if ($this->config->get('parable.routes')) {
              foreach ($this->config->get('parable.routes') as $routesClass) {
                  $routes = \Parable\DI\Container::create($routesClass);
  
                  if (!($routes instanceof \Parable\Framework\Routing\AbstractRouting)) {
                      throw new \Parable\Framework\Exception(
                          "{$routesClass} does not extend \Parable\Framework\Routing\AbstractRouting"
                      );
                  }
  
                  // Load the routes
                  $routes->load();
              }
          } else {
              $this->hook->trigger(self::HOOK_LOAD_ROUTES_NO_ROUTES_FOUND);
          }
          $this->hook->trigger(self::HOOK_LOAD_ROUTES_AFTER);
          return $this;
      }
code_tokens: protected function loadRoutes ( ) { $ this -> hook -> trigger ( self :: HOOK_LOAD_ROUTES_BEFORE ) ; if ( $ this -> config -> get ( 'parable.routes' ) ) { foreach ( $ this -> config -> get ( 'parable.routes' ) as $ routesClass ) { $ routes = \ Parable \ DI \ Container :: create ( $ routesClass ) ; if ( ! ( $ routes instanceof \ Parable \ Framework \ Routing \ AbstractRouting ) ) { throw new \ Parable \ Framework \ Exception ( "{$routesClass} does not extend \Parable\Framework\Routing\AbstractRouting" ) ; } // Load the routes $ routes -> load ( ) ; } } else { $ this -> hook -> trigger ( self :: HOOK_LOAD_ROUTES_NO_ROUTES_FOUND ) ; } $ this -> hook -> trigger ( self :: HOOK_LOAD_ROUTES_AFTER ) ; return $ this ; }
docstring: Load all the routes, if possible.
  
  @return $this
  @throws \Parable\Framework\Exception
docstring_tokens: Load all the routes if possible .