Skip to content

[HttpKernel] fix deprecating KernelInterface::getRootDir() #28890

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

Merged
merged 1 commit into from
Oct 16, 2018

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 4.2
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

Follow up of #28810.
Did I get it right?

@nicolas-grekas
Copy link
Member Author

(ready)

@@ -38,8 +33,7 @@ class CodeHelper extends Helper
public function __construct($fileLinkFormat, string $projectDir, string $charset)
{
$this->fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format');
$this->projectDir = str_replace('\\', '/', $projectDir).'/';
$this->rootDir = $this->projectDir;
$this->rootDir = str_replace('\\', '/', $projectDir).'/';
Copy link
Member

Choose a reason for hiding this comment

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

I would keep the new name, it's easier to follow along.

Copy link
Member Author

@nicolas-grekas nicolas-grekas Oct 16, 2018

Choose a reason for hiding this comment

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

but changing it breaks BC...

Copy link
Member

Choose a reason for hiding this comment

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

Yes and no. That's internal/obsolete code (templating vs Twig).

@fabpot
Copy link
Member

fabpot commented Oct 16, 2018

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 819f525 into symfony:master Oct 16, 2018
fabpot added a commit that referenced this pull request Oct 16, 2018
…() (nicolas-grekas)

This PR was merged into the 4.2-dev branch.

Discussion
----------

[HttpKernel] fix deprecating KernelInterface::getRootDir()

| Q             | A
| ------------- | ---
| Branch?       | 4.2
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Follow up of #28810.
Did I get it right?

Commits
-------

819f525 [HttpKernel] fix deprecating KernelInterface::getRootDir()
@nicolas-grekas nicolas-grekas deleted the krootdir branch October 16, 2018 20:02
fabpot added a commit that referenced this pull request Oct 25, 2018
…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
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.

3 participants