Skip to content
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

mv spatie/symfony-ignition-bundle/0.0/config/packages{,/dev}/ignition.yaml #1689

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

n0099
Copy link
Contributor

@n0099 n0099 commented Oct 9, 2024

fix There is no extension able to load the configuration for "ignition" (in "config/packages/ignition.yaml"). Looked for namespace "ignition", found "framework", "doctrine", "twig". when under environments other than dev

Q A
License MIT
Packagist https://packagist.org/packages/spatie/symfony-ignition-bundle

…on" (in "config/packages/ignition.yaml"). Looked for namespace "ignition", found "framework", "doctrine", "twig".` when under environments other than `dev`
@symfony-recipes-bot symfony-recipes-bot enabled auto-merge (squash) October 9, 2024 23:55
Copy link

github-actions bot commented Oct 9, 2024

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-1689/index.json
    # On Windows
    SET SYMFONY_ENDPOINT=https://raw.githubusercontent.com/symfony/recipes-contrib/flex/pull-1689/index.json
  2. Install the package(s) related to this recipe:

    composer req 'symfony/flex:^1.16'
    composer req 'spatie/symfony-ignition-bundle:^0.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.

n0099 added a commit to n0099/open-tbm that referenced this pull request Oct 10, 2024
…ntrib#1689 and partial revert af67ff2 for `config/bundles.php`

* disable doctrine query cache to fix https://stackoverflow.com/questions/30871721/doctrine2-dynamic-table-name-for-entity#comment139425159_49796901 @ `config/packages/doctrine.yaml`

* rename var `APP_BASE_URL_ASSETS` to `APP_BASE_URL_BE`, also affect its only usage in `config/packages/framework.yaml`
* set the default environment to production
@ .env
@ be
Copy link
Member

@diimpp diimpp left a comment

Choose a reason for hiding this comment

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

Hi @n0099, thank you for your contribution!

I would suggest an alternative approach to wrap config with when@dev like so (instead of moving config to config/packages/dev):

when@dev:
    ignition:
        application_path: '%kernel.project_dir%'
        dark_mode: false
        should_display_exception: '%kernel.debug%'

This approach is available since symfony 5.3 and spatie/symfony-ignition-bundle minimal requirement is 5.4, so we should be safe to use it.

And it's currently preferred way to do it, as shown in example https://github.com/symfony/demo/blob/f39ffa0c5983cd50f73a8d6ef1026422ca4ec355/config/packages/monolog.yaml#L5-L24

I've opened PR with same fix at spatie/symfony-ignition-bundle#29

auto-merge was automatically disabled October 14, 2024 23:31

Head branch was pushed to by a user without write access

@n0099 n0099 requested a review from diimpp October 14, 2024 23:32
@symfony-recipes-bot symfony-recipes-bot enabled auto-merge (squash) October 14, 2024 23:32
n0099 added a commit to n0099/open-tbm that referenced this pull request Oct 14, 2024
@symfony-recipes-bot symfony-recipes-bot merged commit 8120a06 into symfony:main Oct 14, 2024
1 of 2 checks passed
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