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

Fix to load app's ini files after all other extensions are loaded #617

Merged
merged 2 commits into from
Aug 7, 2024

Conversation

leroy0211
Copy link
Contributor

@leroy0211 leroy0211 commented Apr 25, 2024

Fixes #538 by specifying a different conf.d directory (app.conf.d) for loading the ini files.

Renamed the files to numerical prefixes so they are loaded in the correct order. Default first, then environment specific.

After running a dev build, this is the output of php --ini

Configuration File (php.ini) Path: /usr/local/etc/php
Loaded Configuration File:         /usr/local/etc/php/php.ini
Scan for additional .ini files in: /usr/local/etc/php/conf.d:/usr/local/etc/php/app.conf.d
Additional .ini files parsed:      /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini,
/usr/local/etc/php/conf.d/docker-php-ext-intl.ini,
/usr/local/etc/php/conf.d/docker-php-ext-opcache.ini,
/usr/local/etc/php/conf.d/docker-php-ext-sodium.ini,
/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini,
/usr/local/etc/php/conf.d/docker-php-ext-zip.ini,
/usr/local/etc/php/app.conf.d/10-app.ini,
/usr/local/etc/php/app.conf.d/20-app.dev.ini

Dockerfile Outdated Show resolved Hide resolved
Co-authored-by: Borislav Kosun <kosun.b@yandex.com>
@goulashsoup
Copy link

@dunglas I there a reason this is not merged yet?

Copy link
Owner

@dunglas dunglas left a comment

Choose a reason for hiding this comment

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

LGTM. WDYT @maxhelias

Copy link
Collaborator

@maxhelias maxhelias left a comment

Choose a reason for hiding this comment

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

I agree with this 👍

@maxhelias maxhelias merged commit 8ba41cf into dunglas:main Aug 7, 2024
2 checks passed
@maxhelias
Copy link
Collaborator

Thanks @leroy0211 for fixing this and @bkosun for the review 😉

Trim added a commit to Trim/symfony-docker that referenced this pull request Aug 8, 2024
…i file

With the fix to load app's ini files after all other extensions are loaded (dunglas#617), the app-dev.ini file has been renamed 20-app.dev.ini and has been moved to a folder named "app.conf.d".

Although, the fix forgot to update the development environment file `compose.override.yaml` with the new name and location.
dunglas pushed a commit that referenced this pull request Aug 8, 2024
…#652)

With the fix to load app's ini files after all other extensions are loaded (#617), the app-dev.ini file has been renamed 20-app.dev.ini and has been moved to a folder named "app.conf.d".

Although, the fix forgot to update the development environment file `compose.override.yaml` with the new name and location.
VitaliyMinenko pushed a commit to VitaliyMinenko/notofication-service that referenced this pull request Sep 16, 2024
…nglas#617)

Co-authored-by: Borislav Kosun <kosun.b@yandex.com>
Co-authored-by: Leroy Baeyens <leroybaeyens@leroys-mbp.home>
VitaliyMinenko pushed a commit to VitaliyMinenko/notofication-service that referenced this pull request Sep 16, 2024
…dunglas#652)

With the fix to load app's ini files after all other extensions are loaded (dunglas#617), the app-dev.ini file has been renamed 20-app.dev.ini and has been moved to a folder named "app.conf.d".

Although, the fix forgot to update the development environment file `compose.override.yaml` with the new name and location.
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.

php config file order
5 participants