original_string: public static function make()
      {
          $services = Provider::getServices();
          $config = $services->get('Config');
          $strategies = [];
          if (isset($config['error']['strategies'])) {
              $strategies = (array) $config['error']['strategies'];
          }
          $listener = new ErrorListener;
          foreach ($strategies as $name) {
              $strategy = $services->get($name);
              $listener->attachErrorStrategy($strategy);
          }
  
          return $listener;
      }
code: public static function make()
      {
          $services = Provider::getServices();
          $config = $services->get('Config');
          $strategies = [];
          if (isset($config['error']['strategies'])) {
              $strategies = (array) $config['error']['strategies'];
          }
          $listener = new ErrorListener;
          foreach ($strategies as $name) {
              $strategy = $services->get($name);
              $listener->attachErrorStrategy($strategy);
          }
  
          return $listener;
      }
code_tokens: public static function make ( ) { $ services = Provider :: getServices ( ) ; $ config = $ services -> get ( 'Config' ) ; $ strategies = [ ] ; if ( isset ( $ config [ 'error' ] [ 'strategies' ] ) ) { $ strategies = ( array ) $ config [ 'error' ] [ 'strategies' ] ; } $ listener = new ErrorListener ; foreach ( $ strategies as $ name ) { $ strategy = $ services -> get ( $ name ) ; $ listener -> attachErrorStrategy ( $ strategy ) ; } return $ listener ; }
docstring: Makes the error listener.
  
  @return \Es\Error\ErrorListener The error listener
docstring_tokens: Makes the error listener .