Skip to content

Conversation

@alexander-schranz
Copy link
Contributor

@alexander-schranz alexander-schranz commented Oct 31, 2025

Q A
Branch? 7.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #...
License MIT

The #62248 includes this change, but was not the target of that Pull Request as output is different.

If #62248 merged this can be clsoed.

@carsonbot
Copy link

Hey!

To help keep things organized, we don't allow "Draft" pull requests. Could you please click the "ready for review" button or close this PR and open a new one when you are done?

Note that a pull request does not have to be "perfect" or "ready for merge" when you first open it. We just want it to be ready for a first review.

Cheers!

Carsonbot

@alexander-schranz alexander-schranz force-pushed the bugfix/optional-share-dir branch from bbefa18 to 3bf1126 Compare October 31, 2025 11:22
@alexander-schranz alexander-schranz changed the title Fix that kernel share dir is optional now Fix that kernel share dir is optional now in Framework Configuration Oct 31, 2025
->end()
->scalarNode('directory')->defaultValue('%kernel.share_dir%/pools/app')->end()
->scalarNode('directory')->defaultValue(
($this->hasKernelShareDir ? '%kernel.share_dir%' : '%kernel.cache_dir%').'/pools/app'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this might change in: #62248

@alexander-schranz alexander-schranz marked this pull request as ready for review October 31, 2025 11:24
@carsonbot carsonbot added this to the 7.4 milestone Oct 31, 2025
@carsonbot
Copy link

Hey!

Thanks for your PR. You are targeting branch "7.4" but it seems your PR description refers to branch "7.4 for features / 6.4, 7.3 for bug fixes".
Could you update the PR description or change target branch? This helps core maintainers a lot.

Cheers!

Carsonbot

@carsonbot carsonbot changed the title Fix that kernel share dir is optional now in Framework Configuration Fix that kernel share dir is optional now in Framework Configuration Oct 31, 2025
Copy link
Member

@GromNaN GromNaN left a comment

Choose a reason for hiding this comment

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

👎🏻 The goal is to force setting a different cache driver on distributed servers without shared directory.

This default is for single-server applications (dev) and multi-server applications that can provide a shared directory.

@nicolas-grekas
Copy link
Member

I agree with @GromNaN: the failure would be on purpose: once you configure your app with no share dir, you should get a failure if a subsystem is still configured to rely on it. The cache pools is a good example: you don't want the pools to go to the cache dir if there's no share dir. You want to reconfigure the pools to go to redis instead.

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.

4 participants