Skip to content
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

Upgrade Symfony calls to MAIN_REQUEST, LogoutEvent, TestUserProvider, Kernel RoutingConfigurator #6561

Merged

Conversation

alexander-schranz
Copy link
Member

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets
Related issues/PRs #6556
License MIT
Documentation PR sulu/sulu-docs#

What's in this PR?

Upgrade deprecated symfony method calls.

Why?

To make sulu compatible with symfony 6 in future.

@alexander-schranz alexander-schranz added the DX Affecting the end developer label Apr 26, 2022
@alexander-schranz alexander-schranz force-pushed the enhancement/symfony-deprecations branch 2 times, most recently from 46cb722 to 2543b7d Compare April 26, 2022 14:28
@alexander-schranz alexander-schranz changed the title Upgrade deprecated symfony method calls Upgrade deprecated symfony method calls to MAIN_REQUEST and LogoutEvent Apr 26, 2022
@alexander-schranz alexander-schranz changed the title Upgrade deprecated symfony method calls to MAIN_REQUEST and LogoutEvent Upgrade Symfony calls to MAIN_REQUEST, LogoutEvent, TestUserProvider Apr 26, 2022
@alexander-schranz alexander-schranz force-pushed the enhancement/symfony-deprecations branch 2 times, most recently from 8254d8b to 9f407b1 Compare April 26, 2022 14:43
@@ -41,6 +41,6 @@ public function dispatchDomainEventWithSpecificEventName(DomainEvent $event): vo
// allows to register listeners that listen to all domain events.
// this subscriber additionally dispatches the event with a specific event-name such as TagRemovedEvent::class
// to allow for registering listeners for a specific type of event.
$this->eventDispatcher->dispatch($event, \get_class($event));
Copy link
Member Author

Choose a reason for hiding this comment

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

get_class is the default behaviour of the event dispatcher that is why rector is replacing it.

@@ -35,12 +35,12 @@ public function __construct(TranslatorInterface $translator)
/**
* @param mixed[] $parameters
*/
public function trans($id, array $parameters = [], $domain = null, $locale = null): string
public function trans(string $id, array $parameters = [], string $domain = null, string $locale = null): string
Copy link
Member Author

Choose a reason for hiding this comment

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

this class is @internal and should so make no difference here.

@alexander-schranz alexander-schranz changed the title Upgrade Symfony calls to MAIN_REQUEST, LogoutEvent, TestUserProvider Upgrade Symfony calls to MAIN_REQUEST, LogoutEvent, TestUserProvider, Kernel RoutingConfigurator Apr 26, 2022
@alexander-schranz alexander-schranz mentioned this pull request Apr 26, 2022
84 tasks
@Prokyonn Prokyonn enabled auto-merge (squash) April 26, 2022 15:10
@Prokyonn Prokyonn merged commit 625b7c5 into sulu:2.5 Apr 26, 2022
@alexander-schranz alexander-schranz deleted the enhancement/symfony-deprecations branch April 26, 2022 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DX Affecting the end developer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants