Skip to content

Conversation

@nicolas-grekas
Copy link
Member

Q A
Branch? 7.4
Bug fix? no
New feature? yes
Deprecations? no
Issues -
License MIT

The goal of this PR is to enable adding the last line in this .env snippet thanks to flex recipes:

###> symfony/framework-bundle ###
APP_ENV=dev
APP_SECRET=
APP_SHARE_DIR=$APP_PROJECT_DIR/var/share
###< symfony/framework-bundle ###

@nicolas-grekas nicolas-grekas force-pushed the runtime-project-dir-env branch from 6fd4007 to b3a1f18 Compare October 28, 2025 11:01
@nicolas-grekas nicolas-grekas merged commit 5f9310b into symfony:7.4 Oct 28, 2025
12 checks passed
@nicolas-grekas nicolas-grekas deleted the runtime-project-dir-env branch October 30, 2025 18:04
This was referenced Nov 2, 2025
nicolas-grekas added a commit that referenced this pull request Nov 21, 2025
… directory (nicolas-grekas)

This PR was merged into the 7.4 branch.

Discussion
----------

[FrameworkBundle] Make `APP_*_DIR` relative to the project directory

| Q             | A
| ------------- | ---
| Branch?       | 7.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        | #62395
| License       | MIT

Relying on `APP_PROJECT_DIR` as introduced in #62190 has issues, like #62395
This PR resolves paths configured via `APP_*_DIR` relatively to the project-directory.
This makes things much more predictable and removes the need to rely on `APP_PROJECT_DIR`.

Commits
-------

fb7b391 [FrameworkBundle] Make `APP_*_DIR` relative to the project directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants