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

[7.0] Remove remaining deprecated code paths #50873

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 5, 2023

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 7.0
Bug fix? no
New feature? yes
Deprecations? no
Tickets -
License MIT
Doc PR -

Form

  • Throw when using DateTime or DateTimeImmutable model data with a different timezone than configured with the
    model_timezone option in DateType, DateTimeType, and TimeType
  • Make the "widget" option of date/time form types default to "single_text"

FrameworkBundle

  • Make the http_method_override config option default to false
  • Remove AbstractController::renderForm(), use render() instead
  • Remove the Symfony\Component\Serializer\Normalizer\ObjectNormalizer and
    Symfony\Component\Serializer\Normalizer\PropertyNormalizer autowiring aliases, type-hint against
    Symfony\Component\Serializer\Normalizer\NormalizerInterface or implement NormalizerAwareInterface instead
  • Remove the Http\Client\HttpClient service, use Psr\Http\Client\ClientInterface instead

Messenger

  • Remove MessageHandlerInterface and MessageSubscriberInterface, use #[AsMessageHandler] instead
  • Remove StopWorkerOnSigtermSignalListener in favor of
    StopWorkerOnSignalsListener and make it configurable with SIGINT and
  • Remove Symfony\Component\Messenger\Transport\InMemoryTransport and
    Symfony\Component\Messenger\Transport\InMemoryTransportFactory in favor of
    Symfony\Component\Messenger\Transport\InMemory\InMemoryTransport and
    Symfony\Component\Messenger\Transport\InMemory\InMemoryTransportFactory

Translation

  • Remove PhpStringTokenParser
  • Remove PhpExtractor in favor of PhpAstExtractor

TwigBundle

  • Remove option twig.autoescape, use twig.autoescape_service[_method] instead
  • Remove the Twig_Environment autowiring alias, use Twig\Environment instead

Yaml

  • Remove the !php/const: tag, use !php/const instead (without the colon)

@@ -48,7 +48,7 @@ protected function getDefaultFormatter()
/**
* @author Grégoire Pineau <lyrixx@lyrixx.info>
*
* @internal since Symfony 6.1
* @internal
*/
trait ServerLogHandlerTrait
Copy link
Member Author

Choose a reason for hiding this comment

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

@lyrixx @Seldaek WDYT of removing support for monolog < 3?

Copy link
Member

Choose a reason for hiding this comment

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

Yes that would allow some conditional code mess to be cleaned up which sounds great

Copy link
Member Author

Choose a reason for hiding this comment

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

@lyrixx up for a PR doing so?

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 on it

@@ -22,7 +22,7 @@
return static function (ContainerConfigurator $container) {
$container->services()
->set('annotations.reader', AnnotationReader::class)
->call('addGlobalIgnoredName', ['required']) // @deprecated since Symfony 6.3
->call('addGlobalIgnoredName', ['required'])
Copy link
Member Author

Choose a reason for hiding this comment

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

keeping this as is so that ppl can still use the annotation without being bothered

Copy link
Member

@wouterj wouterj left a comment

Choose a reason for hiding this comment

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

🚀 Nice one

Some UPGRADE guide suggestions, I haven't looked at the code changes.

UPGRADE-7.0.md Outdated Show resolved Hide resolved
UPGRADE-7.0.md Outdated Show resolved Hide resolved
@lyrixx
Copy link
Member

lyrixx commented Jul 4, 2023

You forgot to update the CHANGELOG of the workflow component (a least this one)

@nicolas-grekas nicolas-grekas force-pushed the all-deprec branch 6 times, most recently from f07fb6f to 048170f Compare July 4, 2023 15:29
nicolas-grekas added a commit that referenced this pull request Jul 4, 2023
…-grekas)

This PR was merged into the 6.4 branch.

Discussion
----------

[6.4] Fix remainings from previous deprecations

| Q             | A
| ------------- | ---
| Branch?       | 6.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Found while working on #50873

Commits
-------

2d59b2f [6.4] Fix remainings from previous deprecations
nicolas-grekas added a commit that referenced this pull request Jul 5, 2023
…scriptors (nicolas-grekas)

This PR was merged into the 5.4 branch.

Discussion
----------

[Messenger] Fix passing options set via tags to handler descriptors

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Spotted while working on #50873

Commits
-------

2a6f72b [Messenger] Fix passing options set via tags to handler descriptors
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.

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