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;
    }
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;
    }
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 ; }
Makes the error listener.

@return \Es\Error\ErrorListener The error listener
Makes the error listener .