-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New getProjectDir in MicroKernelTrait is too opinionated #36719
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
Comments
That's just the defaults, you are free to provide your own implementation that fits your layout. |
I think the point is that if you were already using the trait in 5.0 the value returned by |
But we already have a default (in base Kernel) and it's better. Why to redefine it in trait? |
I just ran some benchmarks, I measure no diff when I drop the implem in MicroKernel. I suppose replacing Please send a PR @garak |
…rnelTrait (garak) This PR was merged into the 5.1-dev branch. Discussion ---------- [FrameworkBundle] remove getProjectDir method from MicroKernelTrait | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #36719 | License | MIT | Doc PR | not needed Remove method added in trait, to be able to use same method in base kernel class. Commits ------- f2f3eba remove getProjectDir method from MicroKernelTrait
Symfony version(s) affected: 5.1.0
With changes introduced in commit a689807, is always supposed that Kernel is simply in
src
directory.This breaks applications where Kernel is put elsewhere (that, by the way, would work fine with the base definition of
getProjectDir
in the base kernel class).I suggest to revert such change and to remove
getProjectDir
from MicroKernelTraitThe text was updated successfully, but these errors were encountered: