-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Remove deprecated container injections and compiler passes #22749
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
f679e43
to
8b0ccf6
Compare
rebase needed to see tests green |
done, thanks |
@@ -57,18 +56,6 @@ class Translator extends BaseTranslator implements WarmableInterface | |||
*/ | |||
public function __construct(ContainerInterface $container, MessageSelector $selector, $defaultLocale = null, array $loaderIds = array(), array $options = array()) | |||
{ | |||
// BC 3.x, to be removed in 4.0 along with the $defaultLocale default value |
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.
you forgot to remove the default value
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.
fixed
missing CHANGELOG updates in components (please check any your other PRs also if any) |
3b54859
to
c785d51
Compare
CHANGELOG entries added |
42c7aec
to
455b6a0
Compare
@@ -55,20 +54,8 @@ class Translator extends BaseTranslator implements WarmableInterface | |||
* | |||
* @throws InvalidArgumentException | |||
*/ | |||
public function __construct(ContainerInterface $container, MessageSelector $selector, $defaultLocale = null, array $loaderIds = array(), array $options = array()) | |||
public function __construct(ContainerInterface $container, MessageSelector $selector, $defaultLocale, array $loaderIds = array(), array $options = array()) |
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.
it looks like the docblock is not up to date - and we could add a "string" type hint meanwhile here
* The default `type` option of the `framework.workflows.*` configuration entries is `state_machine` | ||
* [BC BREAK] removed `AddConsoleCommandPass`, `AddConstraintValidatorsPass`, |
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.
i'm not sore we need all these bc break prefixes, I'd remove them
@nicolas-grekas comments addressed |
@chalasr would you mind opening a PR to fix that doc block in 3.3 (I guess)? |
Thank you @chalasr. |
…sses (chalasr) This PR was merged into the 4.0-dev branch. Discussion ---------- Remove deprecated container injections and compiler passes | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | yes | Deprecations? | no | Tests pass? | yes | Fixed tickets | ~~#21451 #21625 #21284 #22010~~ #22805 | License | MIT | Doc PR | n/a Commits ------- 16a2fcf Remove deprecated container injections and compiler passes
…halasr) This PR was merged into the 3.3 branch. Discussion ---------- Add missing doc param & deprecation changelog entries | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #22749 (comment) | License | MIT | Doc PR | n/a Commits ------- 7b14d4f Add missing doc param & deprecation changelog entries
This PR was merged into the 4.0-dev branch. Discussion ---------- [FrameworkBundle] Remove deprecated code | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no <!-- don't forget updating src/**/CHANGELOG.md files --> | BC breaks? | yes | Deprecations? | no <!-- don't forget updating UPGRADE-*.md files --> | Tests pass? | yes | Fixed tickets | N/A | License | MIT | Doc PR | N/A Remove deprecated code in the FrameworkBundle (except compiler passes and stuff already removed by #22749): * Removed `cache:clear` warmup part along with the `--no-optional-warmers` option. * Removed core form types services registration when unnecessary * Removed `framework.serializer.cache` option and `serializer.mapping.cache.apc`, `serializer.mapping.cache.doctrine.apc` services * Removed `ConstraintValidatorFactory::$validators` and `ConstraintValidatorFactory::$container` protected properties * Removed class parameters related to routing * Removed absolute template paths support in the template name parser Commits ------- 531156e [FrameworkBundle] Remove deprecated code
* 4.0: (23 commits) Clean up Update return type in docblock. PHP CS Fixer: no need to exclude xml and yml files PHP CS Fixer: no need to exclude json file [#22749] fix version in changelog Update LICENSE year... forever fixed some deprecation messages fixed CS Fixes for Oracle in PdoSessionHandler fixed some deprecation messages fixed some deprecation messages fixed some deprecation messages fixed some deprecation messages Remove dead code [TwigBundle/Brige] catch missing requirements to throw meaningful exceptions [DI] fix CS [HttpKernel] Call Response->setPrivate() instead of sending raw header() when session is started [FrameworkBundle] Make cache:clear "atomic" and consistent with cache:warmup Suggest to write an implementation if the interface cannot be autowired [Debug] Skip DebugClassLoader checks for already parsed files ...
* 4.0: (23 commits) Clean up Update return type in docblock. PHP CS Fixer: no need to exclude xml and yml files PHP CS Fixer: no need to exclude json file [symfony#22749] fix version in changelog Update LICENSE year... forever fixed some deprecation messages fixed CS Fixes for Oracle in PdoSessionHandler fixed some deprecation messages fixed some deprecation messages fixed some deprecation messages fixed some deprecation messages Remove dead code [TwigBundle/Brige] catch missing requirements to throw meaningful exceptions [DI] fix CS [HttpKernel] Call Response->setPrivate() instead of sending raw header() when session is started [FrameworkBundle] Make cache:clear "atomic" and consistent with cache:warmup Suggest to write an implementation if the interface cannot be autowired [Debug] Skip DebugClassLoader checks for already parsed files ...
#21451 #21625 #21284 #22010#22805