-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[TwigBridge] Remove $rootDir argument in CodeExtension #28967
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
* @param string $charset The charset | ||
*/ | ||
public function __construct($fileLinkFormat, string $rootDir, string $charset, string $projectDir = null) | ||
public function __construct($fileLinkFormat, string $projectDir, string $charset) |
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.
argument was added in 4.2, so safe to remove technically.
We slightly change the behavior, only in formatFile. IMHO that's fine.
can you have a look at the failure on Windows?
|
and the failure on Travis btw - looks like the composer.json change allowed spotting an issue :) |
Im not sure the appveyor failure is still related, looks like it's not. |
The symfony/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/CodeHelper.php Lines 33 to 38 in 8c24c35
so i tend to keep the slash normalization actually =/ |
Thank you @ro0NL. |
…0NL) This PR was merged into the 4.2-dev branch. Discussion ---------- [TwigBridge] Remove $rootDir argument in CodeExtension | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | symfony/symfony-docs#10547 (comment) | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> Forgotten in #28890 cc @javiereguiluz Commits ------- f894724 [TwigBridge] Remove $rootDir argument in CodeExtension
Forgotten in #28890
cc @javiereguiluz