Skip to content

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

Merged
merged 1 commit into from
May 21, 2017

Conversation

chalasr
Copy link
Member

@chalasr chalasr commented May 18, 2017

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

@chalasr chalasr force-pushed the 4.0-removals branch 5 times, most recently from f679e43 to 8b0ccf6 Compare May 18, 2017 09:12
@nicolas-grekas nicolas-grekas added this to the 4.0 milestone May 18, 2017
@nicolas-grekas
Copy link
Member

rebase needed to see tests green

@chalasr
Copy link
Member Author

chalasr commented May 18, 2017

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
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

@nicolas-grekas
Copy link
Member

missing CHANGELOG updates in components (please check any your other PRs also if any)

@chalasr chalasr force-pushed the 4.0-removals branch 3 times, most recently from 3b54859 to c785d51 Compare May 20, 2017 10:02
@chalasr
Copy link
Member Author

chalasr commented May 20, 2017

CHANGELOG entries added

@@ -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())
Copy link
Member

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`,
Copy link
Member

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

@chalasr
Copy link
Member Author

chalasr commented May 21, 2017

@nicolas-grekas comments addressed

@nicolas-grekas
Copy link
Member

@chalasr would you mind opening a PR to fix that doc block in 3.3 (I guess)?

@nicolas-grekas
Copy link
Member

Thank you @chalasr.

@nicolas-grekas nicolas-grekas merged commit 16a2fcf into symfony:master May 21, 2017
nicolas-grekas added a commit that referenced this pull request May 21, 2017
…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
@chalasr chalasr deleted the 4.0-removals branch May 21, 2017 10:00
@chalasr
Copy link
Member Author

chalasr commented May 21, 2017

@nicolas-grekas see #22822

nicolas-grekas added a commit that referenced this pull request May 21, 2017
…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
nicolas-grekas added a commit that referenced this pull request May 24, 2017
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
@fabpot fabpot mentioned this pull request Oct 19, 2017
xabbuh added a commit that referenced this pull request Jan 1, 2018
nicolas-grekas added a commit that referenced this pull request Jan 2, 2018
* 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
  ...
ostrolucky pushed a commit to ostrolucky/symfony that referenced this pull request Mar 25, 2018
* 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
  ...
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.

4 participants