lubna/custom-error-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

lubna/custom-error-bundle

最新稳定版本:v1.1.0

Composer 安装命令:

composer require lubna/custom-error-bundle

包简介

Symfony bundle to customize and override default error pages (404, 403, 500, 401) with Twig templates and error controller support.

README 文档

README

Customizable error pages for Symfony 6.2 and 7+
This bundle replaces Symfony’s default error pages (404, 403, 500, etc.) with user-friendly Twig templates.

Features

  • Handles 404, 403, 500, 401 and other HTTP errors
  • Shows a login prompt for 401 errors
  • Custom Twig templates

Installation

Install the bundle via Composer:

composer require lubna/custom-error-bundle

🔧 Configuration

1. Register the bundle

In config/bundles.php:

return [
    CustomError\Bundle\CustomErrorBundle::class => ['all' => true],
];

If you want the bundle to be active only in production, you can use:

return [
    CustomError\Bundle\CustomErrorBundle::class => ['prod' => true],
];

2. Register the error controller

In config/services.yaml:

services:
    CustomError\Bundle\Controller\ErrorController:
        tags: ['controller.service_arguments']

Author

Made with ❤️ by Lubna
Feel free to contribute, fork, or open issues.

统计信息

  • 总下载量: 263
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 0
  • 开发语言: Twig

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-06-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固