protected function redefineErrorHandlers(&$container)
    {
        // Redefine - errors
        $container['errorHandler'] = BuilderJsonErrorResponses::jsonError();
        $container['phpErrorHandler'] = BuilderJsonErrorResponses::jsonPhpError();
        $container['notFoundHandler'] = BuilderJsonErrorResponses::jsonNotFound();
        $container['notAllowedHandler'] = BuilderJsonErrorResponses::jsonNotAllowed();
    }
protected function redefineErrorHandlers(&$container)
    {
        // Redefine - errors
        $container['errorHandler'] = BuilderJsonErrorResponses::jsonError();
        $container['phpErrorHandler'] = BuilderJsonErrorResponses::jsonPhpError();
        $container['notFoundHandler'] = BuilderJsonErrorResponses::jsonNotFound();
        $container['notAllowedHandler'] = BuilderJsonErrorResponses::jsonNotAllowed();
    }
protected function redefineErrorHandlers ( & $ container ) { // Redefine - errors $ container [ 'errorHandler' ] = BuilderJsonErrorResponses :: jsonError ( ) ; $ container [ 'phpErrorHandler' ] = BuilderJsonErrorResponses :: jsonPhpError ( ) ; $ container [ 'notFoundHandler' ] = BuilderJsonErrorResponses :: jsonNotFound ( ) ; $ container [ 'notAllowedHandler' ] = BuilderJsonErrorResponses :: jsonNotAllowed ( ) ; }
Redefine error handlers

@param array|ContainerInterface $container Instancia de Container o array de configuración.

@return void
Redefine error handlers