-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpKernel] deprecate global dir to load resources from #33258
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
[HttpKernel] deprecate global dir to load resources from #33258
Conversation
2d8f649
to
7d210c7
Compare
@@ -80,23 +80,14 @@ public function getBundle($name); | |||
* where BundleName is the name of the bundle | |||
* and the remaining part is the relative path in the bundle. | |||
* | |||
* If $dir is passed, and the first segment of the path is "Resources", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This description and the code is not compatible with #32845
But since we don't need these arguments anymore, it doesn't matter now.
7d210c7
to
db46679
Compare
I need to take a look at the functional test setup which fail |
db46679
to
4e615d5
Compare
4e615d5
to
aa82566
Compare
Tests are passing. |
Thank you @Tobion. |
…om (Tobion) This PR was merged into the 4.4 branch. Discussion ---------- [HttpKernel] deprecate global dir to load resources from | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | yes <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | #31915 <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | Replaces #31958 Here two example deprecations by adding files in the deprecated locations: ``` Overwriting the resource "@AcmeBundle/Resources/config/routing.yaml" with "/vagrant/src/Resources/AcmeBundle/config/routing.yaml" is deprecated since Symfony 4.4 and will be removed in 5.0. Loading the file "foobar.yaml" from the global resource directory "/vagrant/src" is deprecated since Symfony 4.4 and will be removed in 5.0. ``` Commits ------- aa82566 [HttpKernel] deprecate global dir to load resources from
$paths[] = $this->path; | ||
} | ||
|
||
if (4 !== \func_num_args() || func_get_arg(3)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This condition is weird no ? Because if we pass $triggerDeprecation
on false, it still executed or I miss something ?
Replaces #31958
Here two example deprecations by adding files in the deprecated locations: