-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DI] use dirname() when possible #33529
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
Conversation
82c740e
to
0361509
Compare
0361509
to
2eae300
Compare
@@ -306,7 +312,7 @@ public function dump(array $options = []) | |||
|
|||
use Symfony\Component\DependencyInjection\Dumper\Preloader; | |||
|
|||
require dirname(__DIR__, 3).'/vendor/autoload.php'; | |||
require $autoloadFile; |
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.
now with proper detection of autoload.php
location
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.
Do we have any test covering the dumping of this file ?
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.
yes; not precisely this line but the $classes[] = ...
one below
This PR was merged into the 4.4 branch. Discussion ---------- [DI] use dirname() when possible | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - On second look, I think this works :) Commits ------- 2eae300 [DI] use dirname() when possible
On second look, I think this works :)