Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Disable inlining deprecated services #23540

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
Jul 17, 2017
Merged

Conversation

alekitto
Copy link
Contributor

Q A
Branch? 2.8
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #23536
License MIT

Deprecation errors are not triggered for inlined services.
Disabling inlining for those services will fix this issue.

if ($definition->isDeprecated()) {
return false;
}

if ($definition->isPublic() || $definition->isLazy()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not add || isDeprecated() here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right. Fixed.

@nicolas-grekas nicolas-grekas added this to the 2.8 milestone Jul 17, 2017
@@ -891,6 +891,25 @@ public function testAutowiring()

$this->assertEquals('a', (string) $container->getDefinition('b')->getArgument(0));
}

/**
* @group legacy
Copy link
Member

Choose a reason for hiding this comment

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

As this test and the other one should not be removed in 4.0, I suggest to add a comment to make it clear.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added.

@fabpot
Copy link
Member

fabpot commented Jul 17, 2017

Thank you @alekitto.

@fabpot fabpot merged commit 6ab8ca0 into symfony:2.8 Jul 17, 2017
fabpot added a commit that referenced this pull request Jul 17, 2017
This PR was merged into the 2.8 branch.

Discussion
----------

Disable inlining deprecated services

| Q             | A
| ------------- | ---
| Branch?       | 2.8
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #23536
| License       | MIT

Deprecation errors are not triggered for inlined services.
Disabling inlining for those services will fix this issue.

Commits
-------

6ab8ca0 disable inlining deprecated services
@alekitto alekitto deleted the issue23536_2 branch July 17, 2017 10:19
This was referenced Jul 17, 2017
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.

6 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.