protected function registerHandlers(array $handlersConfig)
    {
        $overrideHandlers = Arr::get($handlersConfig, 'override', []);
        if (count($overrideHandlers) > 0) {
            HandlerFactory::setHandlers($overrideHandlers);

            return $this;
        }

        foreach (Arr::get($handlersConfig, 'custom', []) as $handler) {
            HandlerFactory::register($handler);
        }

        return $this;
    }
protected function registerHandlers(array $handlersConfig)
    {
        $overrideHandlers = Arr::get($handlersConfig, 'override', []);
        if (count($overrideHandlers) > 0) {
            HandlerFactory::setHandlers($overrideHandlers);

            return $this;
        }

        foreach (Arr::get($handlersConfig, 'custom', []) as $handler) {
            HandlerFactory::register($handler);
        }

        return $this;
    }
protected function registerHandlers ( array $ handlersConfig ) { $ overrideHandlers = Arr :: get ( $ handlersConfig , 'override' , [ ] ) ; if ( count ( $ overrideHandlers ) > 0 ) { HandlerFactory :: setHandlers ( $ overrideHandlers ) ; return $ this ; } foreach ( Arr :: get ( $ handlersConfig , 'custom' , [ ] ) as $ handler ) { HandlerFactory :: register ( $ handler ) ; } return $ this ; }
Registers handlers from config.

@param array $handlersConfig

@return $this
Registers handlers from config .