original_string: private function registerApiMiddleware()
      {
          /** @var  \Illuminate\Contracts\Config\Repository  $config */
          $config = $this->app['config'];
  
          foreach ($config->get('api-helper.middleware', []) as $name => $class) {
              $this->aliasMiddleware($name, $class);
          };
      }
code: private function registerApiMiddleware()
      {
          /** @var  \Illuminate\Contracts\Config\Repository  $config */
          $config = $this->app['config'];
  
          foreach ($config->get('api-helper.middleware', []) as $name => $class) {
              $this->aliasMiddleware($name, $class);
          };
      }
code_tokens: private function registerApiMiddleware ( ) { /** @var  \Illuminate\Contracts\Config\Repository  $config */ $ config = $ this -> app [ 'config' ] ; foreach ( $ config -> get ( 'api-helper.middleware' , [ ] ) as $ name => $ class ) { $ this -> aliasMiddleware ( $ name , $ class ) ; } ; }
docstring: Register the API route Middleware.
docstring_tokens: Register the API route Middleware .