承接 sparklink/email-errors-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

sparklink/email-errors-bundle

最新稳定版本:1.3.3

Composer 安装命令:

composer require sparklink/email-errors-bundle

包简介

Symfony bundle to send errors by email

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License

This Symfony bundle provides a way to send email notifications when an error occurs in your application.

EmailErrorsBundle EmailErrorsBundle

Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

composer require sparklink/email-errors-bundle

Symfony Flex Installation

Accept the contrib recipes installation from Symfony Flex

-  WARNING  sparklink/email-errors-bundle (1.0.0): From github.com/symfony/recipes-contrib
    The recipe for this package comes from the "contrib" repository, which is open to community contributions.
    Do you want to execute this recipe?
    [y] Yes
    [n] No
    [a] Yes for all packages, only for the current installation session
    [p] Yes permanently, never ask again for this project
    (defaults to n): 

Manual Installation

Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the config/bundles.php file of your project:

// config/bundles.php

return [
    // ...
    Sparklink\EmailErrorsBundle\EmailErrorsBundle::class => ['all' => true],
];

Configure the Bundle

Create a new file config/packages/email_errors.yaml and add the following configuration:

# config/packages/email_errors.yaml
email_errors:
  enabled: "%kernel.debug%"           
  from: "%env(resolve:MAILER_ERRORS_FROM)%"
  to: "%env(resolve:MAILER_ERRORS_TO)%"
  ignored_exception_class: [] 
  graphql: true

You can ignore some exceptions by adding the class name in the ignored_exception_class array.
If graphql is set to true, the bundle will also handle errors from the GraphQLBundle and send them.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-28