src/Charcoal/Admin/Config.php
public function setHandlers(array $handlers)
    {
        $this->handlers = array_fill_keys(HandlerConfig::defaultHandlerTypes(), []);
        $this->handlers['defaults'] = [];

        foreach ($handlers as $handler => $data) {
            $this->handlers[$handler] = array_replace(
                $this->handlers[$handler],
                $data
            );
        }

        return $this;
    }
public function setHandlers(array $handlers)
    {
        $this->handlers = array_fill_keys(HandlerConfig::defaultHandlerTypes(), []);
        $this->handlers['defaults'] = [];

        foreach ($handlers as $handler => $data) {
            $this->handlers[$handler] = array_replace(
                $this->handlers[$handler],
                $data
            );
        }

        return $this;
    }
public function setHandlers ( array $ handlers ) { $ this -> handlers = array_fill_keys ( HandlerConfig :: defaultHandlerTypes ( ) , [ ] ) ; $ this -> handlers [ 'defaults' ] = [ ] ; foreach ( $ handlers as $ handler => $ data ) { $ this -> handlers [ $ handler ] = array_replace ( $ this -> handlers [ $ handler ] , $ data ) ; } return $ this ; }
Define custom response and error handlers.

Charcoal overrides four of Slim's standard handlers:

- "notFoundHandler"
- "notAllowedHandler"
- "errorHandler"
- "phpErrorHandler"

@param  array $handlers The handlers configuration structure to set.
@return self
Define custom response and error handlers .