Skip to content

Add recipe for devzair/mail-logger-bundle 2.0 #1778

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

Devzair-Officiel
Copy link
Contributor

@Devzair-Officiel Devzair-Officiel commented Apr 16, 2025

Q A
License MIT
Packagist https://packagist.org/packages/devzair/mail-logger-bundle

⚠️ This bundle requires PHP >= 8.1 and Symfony >= 6.0.

The recipe intentionally does not support Symfony 5 / PHP 7.4 because the bundle uses modern PHP 8.1 features (constructor promotion, type safety...).

👉 Maintainer: @Devzair-Officiel
👉 Bundle repository: https://github.com/Devzair-Officiel/Mail-logger-bundle
👉 Packagist: https://packagist.org/packages/devzair/mail-logger-bundle

✅ The bundle is properly namespaced and autoloaded (PSR-4).
✅ The manifest.json declares the bundle class under the bundles key.
✅ The recipe adds a config file mail_logger.yaml using copy-from-recipe.

This PR adds a Symfony Flex recipe for the package devzair/mail-logger-bundle.
It provides automatic configuration and bundle registration.

Files added:

  • config/packages/mail_logger.yaml
  • manifest.json

The bundle allows automatic logging of all emails sent via Symfony Mailer.

@symfony-recipes-bot symfony-recipes-bot enabled auto-merge (squash) April 16, 2025 11:08
Copy link

github-actions bot commented Apr 16, 2025

Thanks for the PR 😍

How to test these changes in your application

  1. Define the SYMFONY_ENDPOINT environment variable:

    # On Unix-like (BSD, Linux and macOS)
    export SYMFONY_ENDPOINT=https://raw.githubusercontent.com/symfony/recipes-contrib/flex/pull-1778/index.json
    # On Windows
    SET SYMFONY_ENDPOINT=https://raw.githubusercontent.com/symfony/recipes-contrib/flex/pull-1778/index.json
  2. Install the package(s) related to this recipe:

    composer req symfony/flex
    composer req 'devzair/mail-logger-bundle:^2.0'
  3. Don't forget to unset the SYMFONY_ENDPOINT environment variable when done:

    # On Unix-like (BSD, Linux and macOS)
    unset SYMFONY_ENDPOINT
    # On Windows
    SET SYMFONY_ENDPOINT=

Diff between recipe versions

In order to help with the review stage, I'm in charge of computing the diff between the various versions of patched recipes.
I'm going keep this comment up to date with any updates of the attached patch.

@Devzair-Officiel
Copy link
Contributor Author

License: MIT

auto-merge was automatically disabled April 16, 2025 14:14

Head branch was pushed to by a user without write access

@symfony-recipes-bot symfony-recipes-bot enabled auto-merge (squash) April 16, 2025 14:15
auto-merge was automatically disabled April 16, 2025 14:25

Head branch was pushed to by a user without write access

@symfony-recipes-bot symfony-recipes-bot enabled auto-merge (squash) April 16, 2025 14:25
auto-merge was automatically disabled April 17, 2025 11:11

Head branch was pushed to by a user without write access

@symfony-recipes-bot symfony-recipes-bot enabled auto-merge (squash) April 17, 2025 11:11
auto-merge was automatically disabled April 18, 2025 13:24

Head branch was pushed to by a user without write access

@symfony-recipes-bot symfony-recipes-bot enabled auto-merge (squash) April 18, 2025 13:25
auto-merge was automatically disabled April 18, 2025 13:29

Head branch was pushed to by a user without write access

@symfony-recipes-bot symfony-recipes-bot enabled auto-merge (squash) April 18, 2025 13:30
auto-merge was automatically disabled April 18, 2025 13:31

Head branch was pushed to by a user without write access

@symfony-recipes-bot symfony-recipes-bot enabled auto-merge (squash) April 18, 2025 13:32
auto-merge was automatically disabled April 18, 2025 13:32

Head branch was pushed to by a user without write access

@symfony-recipes-bot symfony-recipes-bot enabled auto-merge (squash) April 18, 2025 13:32
@diimpp diimpp changed the title Add recipe for devzair/mail-logger-bundle 1.0 Add recipe for devzair/mail-logger-bundle 2.0 Apr 19, 2025
Comment on lines +9 to +13
},
"requirements": {
"php": ">=8.1",
"symfony": "^6.0 || ^7.0"
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this section. requirements is not a supported option for manifest.json.
Here is configuration reference https://github.com/symfony/recipes?tab=readme-ov-file#full-example

Suggested change
},
"requirements": {
"php": ">=8.1",
"symfony": "^6.0 || ^7.0"
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants