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

Latest commit

 

History

History
History
86 lines (62 loc) · 2.63 KB

File metadata and controls

86 lines (62 loc) · 2.63 KB
Copy raw file
Download raw file
Outline
Edit and raw actions

UPGRADE FROM 5.0 to 5.1

Console

  • Command::setHidden() is final since Symfony 5.1

Dotenv

  • Deprecated passing $usePutenv argument to Dotenv's constructor, use Dotenv::usePutenv() instead.

EventDispatcher

  • Deprecated LegacyEventDispatcherProxy. Use the event dispatcher without the proxy.

Form

  • Implementing the FormConfigInterface without implementing the getIsEmptyCallback() method is deprecated. The method will be added to the interface in 6.0.
  • Implementing the FormConfigBuilderInterface without implementing the setIsEmptyCallback() method is deprecated. The method will be added to the interface in 6.0.

FrameworkBundle

  • Deprecated passing a RouteCollectionBuiler to MicroKernelTrait::configureRoutes(), type-hint RoutingConfigurator instead
  • Deprecated not setting the "framework.router.utf8" configuration option as it will default to true in Symfony 6.0

HttpFoundation

  • Deprecate Response::create(), JsonResponse::create(), RedirectResponse::create(), and StreamedResponse::create() methods (use __construct() instead)
  • Made the Mime component an optional dependency

Messenger

  • Deprecated AmqpExt transport. It has moved to a separate package. Run composer require symfony/amqp-messenger to use the new classes.
  • Deprecated Doctrine transport. It has moved to a separate package. Run composer require symfony/doctrine-messenger to use the new classes.
  • Deprecated RedisExt transport. It has moved to a separate package. Run composer require symfony/redis-messenger to use the new classes.
  • Deprecated use of invalid options in Redis and AMQP connections.

Notifier

  • [BC BREAK] The ChatMessage::fromNotification() method's $recipient and $transport arguments were removed.
  • [BC BREAK] The EmailMessage::fromNotification() and SmsMessage::fromNotification() methods' $transport argument was removed.

Routing

  • Deprecated RouteCollectionBuilder in favor of RoutingConfigurator.
  • Added argument $priority to RouteCollection::add()
  • Deprecated the RouteCompiler::REGEX_DELIMITER constant

Security

  • Deprecated ROLE_PREVIOUS_ADMIN role in favor of IS_IMPERSONATOR attribute.

    before

    {% if is_granted('ROLE_PREVIOUS_ADMIN') %}
        <a href="">Exit impersonation</a>
    {% endif %}

    after

    {% if is_granted('IS_IMPERSONATOR') %}
        <a href="">Exit impersonation</a>
    {% endif %}

Yaml

  • Deprecated using the !php/object and !php/const tags without a value.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.