diff --git a/src/Symfony/Component/Console/CHANGELOG.md b/src/Symfony/Component/Console/CHANGELOG.md index 25c5a432b0c9..17c05c9e42a2 100644 --- a/src/Symfony/Component/Console/CHANGELOG.md +++ b/src/Symfony/Component/Console/CHANGELOG.md @@ -7,6 +7,7 @@ CHANGELOG * added `Question::setTrimmable` default to true to allow the answer to be trimmed * added method `preventRedrawFasterThan()` and `forceRedrawSlowerThan()` on `ProgressBar` * `Application` implements `ResetInterface` + * marked all dispatched event classes as `@final` 4.3.0 ----- diff --git a/src/Symfony/Component/Console/Event/ConsoleCommandEvent.php b/src/Symfony/Component/Console/Event/ConsoleCommandEvent.php index 2f517c1db373..79a51906a876 100644 --- a/src/Symfony/Component/Console/Event/ConsoleCommandEvent.php +++ b/src/Symfony/Component/Console/Event/ConsoleCommandEvent.php @@ -15,6 +15,8 @@ * Allows to do things before the command is executed, like skipping the command or changing the input. * * @author Fabien Potencier + * + * @final since Symfony 4.4 */ class ConsoleCommandEvent extends ConsoleEvent { diff --git a/src/Symfony/Component/Console/Event/ConsoleTerminateEvent.php b/src/Symfony/Component/Console/Event/ConsoleTerminateEvent.php index ff0c749d1dc3..43d0f8ab1a2b 100644 --- a/src/Symfony/Component/Console/Event/ConsoleTerminateEvent.php +++ b/src/Symfony/Component/Console/Event/ConsoleTerminateEvent.php @@ -19,6 +19,8 @@ * Allows to manipulate the exit code of a command after its execution. * * @author Francesco Levorato + * + * @final since Symfony 4.4 */ class ConsoleTerminateEvent extends ConsoleEvent { diff --git a/src/Symfony/Component/Form/CHANGELOG.md b/src/Symfony/Component/Form/CHANGELOG.md index c76a15928f43..6cb190fab598 100644 --- a/src/Symfony/Component/Form/CHANGELOG.md +++ b/src/Symfony/Component/Form/CHANGELOG.md @@ -10,6 +10,7 @@ CHANGELOG * deprecated using `int` or `float` as data for the `NumberType` when the `input` option is set to `string` * The type guesser guesses the HTML accept attribute when a mime type is configured in the File or Image constraint. * Overriding the methods `FormIntegrationTestCase::setUp()`, `TypeTestCase::setUp()` and `TypeTestCase::tearDown()` without the `void` return-type is deprecated. + * marked all dispatched event classes as `@final` 4.3.0 ----- diff --git a/src/Symfony/Component/Form/Event/PostSetDataEvent.php b/src/Symfony/Component/Form/Event/PostSetDataEvent.php index 0e5e76c91595..442f60d13d6a 100644 --- a/src/Symfony/Component/Form/Event/PostSetDataEvent.php +++ b/src/Symfony/Component/Form/Event/PostSetDataEvent.php @@ -17,6 +17,8 @@ * This event is dispatched at the end of the Form::setData() method. * * This event is mostly here for reading data after having pre-populated the form. + * + * @final since Symfony 4.4 */ class PostSetDataEvent extends FormEvent { diff --git a/src/Symfony/Component/Form/Event/PostSubmitEvent.php b/src/Symfony/Component/Form/Event/PostSubmitEvent.php index 996150f331c1..9ddb2f8b0e42 100644 --- a/src/Symfony/Component/Form/Event/PostSubmitEvent.php +++ b/src/Symfony/Component/Form/Event/PostSubmitEvent.php @@ -18,6 +18,8 @@ * once the model and view data have been denormalized. * * It can be used to fetch data after denormalization. + * + * @final since Symfony 4.4 */ class PostSubmitEvent extends FormEvent { diff --git a/src/Symfony/Component/Form/Event/PreSetDataEvent.php b/src/Symfony/Component/Form/Event/PreSetDataEvent.php index 160c3392fd2c..678a62918e41 100644 --- a/src/Symfony/Component/Form/Event/PreSetDataEvent.php +++ b/src/Symfony/Component/Form/Event/PreSetDataEvent.php @@ -19,6 +19,8 @@ * It can be used to: * - Modify the data given during pre-population; * - Modify a form depending on the pre-populated data (adding or removing fields dynamically). + * + * @final since Symfony 4.4 */ class PreSetDataEvent extends FormEvent { diff --git a/src/Symfony/Component/Form/Event/PreSubmitEvent.php b/src/Symfony/Component/Form/Event/PreSubmitEvent.php index 751317627931..5f34a2feebf1 100644 --- a/src/Symfony/Component/Form/Event/PreSubmitEvent.php +++ b/src/Symfony/Component/Form/Event/PreSubmitEvent.php @@ -19,6 +19,8 @@ * It can be used to: * - Change data from the request, before submitting the data to the form. * - Add or remove form fields, before submitting the data to the form. + * + * @final since Symfony 4.4 */ class PreSubmitEvent extends FormEvent { diff --git a/src/Symfony/Component/Form/Event/SubmitEvent.php b/src/Symfony/Component/Form/Event/SubmitEvent.php index 511d800d5329..b3f16fc8fd44 100644 --- a/src/Symfony/Component/Form/Event/SubmitEvent.php +++ b/src/Symfony/Component/Form/Event/SubmitEvent.php @@ -18,6 +18,8 @@ * transforms back the normalized data to the model and view data. * * It can be used to change data from the normalized representation of the data. + * + * @final since Symfony 4.4 */ class SubmitEvent extends FormEvent { diff --git a/src/Symfony/Component/HttpKernel/CHANGELOG.md b/src/Symfony/Component/HttpKernel/CHANGELOG.md index 3fc49b0fc510..fe5a8db20e42 100644 --- a/src/Symfony/Component/HttpKernel/CHANGELOG.md +++ b/src/Symfony/Component/HttpKernel/CHANGELOG.md @@ -12,6 +12,7 @@ CHANGELOG fallback directories. Resources like service definitions are usually loaded relative to the current directory or with a glob pattern. The fallback directories have never been advocated so you likely do not use those in any app based on the SF Standard or Flex edition. + * Marked all dispatched event classes as `@final` 4.3.0 ----- diff --git a/src/Symfony/Component/HttpKernel/Event/ControllerArgumentsEvent.php b/src/Symfony/Component/HttpKernel/Event/ControllerArgumentsEvent.php index 3dc6ea50ede1..5efb80cf8f44 100644 --- a/src/Symfony/Component/HttpKernel/Event/ControllerArgumentsEvent.php +++ b/src/Symfony/Component/HttpKernel/Event/ControllerArgumentsEvent.php @@ -22,6 +22,8 @@ * controller. * * @author Christophe Coevoet + * + * @final since Symfony 4.4 */ class ControllerArgumentsEvent extends FilterControllerArgumentsEvent { diff --git a/src/Symfony/Component/HttpKernel/Event/ControllerEvent.php b/src/Symfony/Component/HttpKernel/Event/ControllerEvent.php index 9afb818a1d4f..7b642eaa3353 100644 --- a/src/Symfony/Component/HttpKernel/Event/ControllerEvent.php +++ b/src/Symfony/Component/HttpKernel/Event/ControllerEvent.php @@ -21,6 +21,8 @@ * Controllers should be callables. * * @author Bernhard Schussek + * + * @final since Symfony 4.4 */ class ControllerEvent extends FilterControllerEvent { diff --git a/src/Symfony/Component/HttpKernel/Event/ExceptionEvent.php b/src/Symfony/Component/HttpKernel/Event/ExceptionEvent.php index d3b2d8f6061f..3dae0d4ce69a 100644 --- a/src/Symfony/Component/HttpKernel/Event/ExceptionEvent.php +++ b/src/Symfony/Component/HttpKernel/Event/ExceptionEvent.php @@ -23,6 +23,8 @@ * event. * * @author Bernhard Schussek + * + * @final since Symfony 4.4 */ class ExceptionEvent extends GetResponseForExceptionEvent { diff --git a/src/Symfony/Component/HttpKernel/Event/FinishRequestEvent.php b/src/Symfony/Component/HttpKernel/Event/FinishRequestEvent.php index ee724843cd84..9374d2db954e 100644 --- a/src/Symfony/Component/HttpKernel/Event/FinishRequestEvent.php +++ b/src/Symfony/Component/HttpKernel/Event/FinishRequestEvent.php @@ -15,6 +15,8 @@ * Triggered whenever a request is fully processed. * * @author Benjamin Eberlei + * + * @final since Symfony 4.4 */ class FinishRequestEvent extends KernelEvent { diff --git a/src/Symfony/Component/HttpKernel/Event/ResponseEvent.php b/src/Symfony/Component/HttpKernel/Event/ResponseEvent.php index 88c1996eaa95..eae8c39cc335 100644 --- a/src/Symfony/Component/HttpKernel/Event/ResponseEvent.php +++ b/src/Symfony/Component/HttpKernel/Event/ResponseEvent.php @@ -19,6 +19,8 @@ * browser. * * @author Bernhard Schussek + * + * @final since Symfony 4.4 */ class ResponseEvent extends FilterResponseEvent { diff --git a/src/Symfony/Component/HttpKernel/Event/TerminateEvent.php b/src/Symfony/Component/HttpKernel/Event/TerminateEvent.php index 6ce23e43f310..6a74445d6781 100644 --- a/src/Symfony/Component/HttpKernel/Event/TerminateEvent.php +++ b/src/Symfony/Component/HttpKernel/Event/TerminateEvent.php @@ -18,6 +18,8 @@ * will always return the value of `HttpKernelInterface::MASTER_REQUEST`. * * @author Jordi Boggiano + * + * @final since Symfony 4.4 */ class TerminateEvent extends PostResponseEvent { diff --git a/src/Symfony/Component/HttpKernel/Event/ViewEvent.php b/src/Symfony/Component/HttpKernel/Event/ViewEvent.php index 1cb7e23980ba..da50da82a9fc 100644 --- a/src/Symfony/Component/HttpKernel/Event/ViewEvent.php +++ b/src/Symfony/Component/HttpKernel/Event/ViewEvent.php @@ -19,6 +19,8 @@ * response is set. * * @author Bernhard Schussek + * + * @final since Symfony 4.4 */ class ViewEvent extends GetResponseForControllerResultEvent { diff --git a/src/Symfony/Component/Mailer/CHANGELOG.md b/src/Symfony/Component/Mailer/CHANGELOG.md index b03340585054..59293ee4640f 100644 --- a/src/Symfony/Component/Mailer/CHANGELOG.md +++ b/src/Symfony/Component/Mailer/CHANGELOG.md @@ -19,6 +19,7 @@ CHANGELOG `Symfony\Component\Mailer\Transport\TransportFactoryInterface` and tagging with `mailer.transport_factory` tag in DI. * Added `Symfony\Component\Mailer\Test\TransportFactoryTestCase` to ease testing custom transport factories. * Added `SentMessage::getDebug()` and `TransportExceptionInterface::getDebug` to help debugging + * Made `MessageEvent` final 4.3.0 ----- diff --git a/src/Symfony/Component/Mailer/Event/MessageEvent.php b/src/Symfony/Component/Mailer/Event/MessageEvent.php index 1ceb0916605b..25a8aafbb1f7 100644 --- a/src/Symfony/Component/Mailer/Event/MessageEvent.php +++ b/src/Symfony/Component/Mailer/Event/MessageEvent.php @@ -20,7 +20,7 @@ * * @author Fabien Potencier */ -class MessageEvent extends Event +final class MessageEvent extends Event { private $message; private $envelope; diff --git a/src/Symfony/Component/Messenger/CHANGELOG.md b/src/Symfony/Component/Messenger/CHANGELOG.md index f5a51a3468f1..6fc867dd3f2c 100644 --- a/src/Symfony/Component/Messenger/CHANGELOG.md +++ b/src/Symfony/Component/Messenger/CHANGELOG.md @@ -8,6 +8,7 @@ CHANGELOG pass a `RoutableMessageBus` instance instead. * Added support for auto trimming of Redis streams. * `InMemoryTransport` handle acknowledged and rejected messages. + * Made all dispatched worker event classes final. 4.3.0 ----- diff --git a/src/Symfony/Component/Messenger/Event/SendMessageToTransportsEvent.php b/src/Symfony/Component/Messenger/Event/SendMessageToTransportsEvent.php index 2c7ec02ec75c..5fd5fd8d91f2 100644 --- a/src/Symfony/Component/Messenger/Event/SendMessageToTransportsEvent.php +++ b/src/Symfony/Component/Messenger/Event/SendMessageToTransportsEvent.php @@ -24,7 +24,7 @@ * * @author Ryan Weaver */ -class SendMessageToTransportsEvent +final class SendMessageToTransportsEvent { private $envelope; diff --git a/src/Symfony/Component/Messenger/Event/WorkerMessageFailedEvent.php b/src/Symfony/Component/Messenger/Event/WorkerMessageFailedEvent.php index 2c22ee1cdbff..586797969974 100644 --- a/src/Symfony/Component/Messenger/Event/WorkerMessageFailedEvent.php +++ b/src/Symfony/Component/Messenger/Event/WorkerMessageFailedEvent.php @@ -18,7 +18,7 @@ * * The event name is the class name. */ -class WorkerMessageFailedEvent extends AbstractWorkerMessageEvent +final class WorkerMessageFailedEvent extends AbstractWorkerMessageEvent { private $throwable; private $willRetry; diff --git a/src/Symfony/Component/Messenger/Event/WorkerMessageHandledEvent.php b/src/Symfony/Component/Messenger/Event/WorkerMessageHandledEvent.php index a7e0b46a7a33..3c4a03037f8a 100644 --- a/src/Symfony/Component/Messenger/Event/WorkerMessageHandledEvent.php +++ b/src/Symfony/Component/Messenger/Event/WorkerMessageHandledEvent.php @@ -16,6 +16,6 @@ * * The event name is the class name. */ -class WorkerMessageHandledEvent extends AbstractWorkerMessageEvent +final class WorkerMessageHandledEvent extends AbstractWorkerMessageEvent { } diff --git a/src/Symfony/Component/Messenger/Event/WorkerMessageReceivedEvent.php b/src/Symfony/Component/Messenger/Event/WorkerMessageReceivedEvent.php index a1523b8d96f8..5b99edcb422d 100644 --- a/src/Symfony/Component/Messenger/Event/WorkerMessageReceivedEvent.php +++ b/src/Symfony/Component/Messenger/Event/WorkerMessageReceivedEvent.php @@ -16,7 +16,7 @@ * * The event name is the class name. */ -class WorkerMessageReceivedEvent extends AbstractWorkerMessageEvent +final class WorkerMessageReceivedEvent extends AbstractWorkerMessageEvent { private $shouldHandle = true; diff --git a/src/Symfony/Component/Messenger/Event/WorkerStoppedEvent.php b/src/Symfony/Component/Messenger/Event/WorkerStoppedEvent.php index 8ebbd5d1240b..90e697ddcaa3 100644 --- a/src/Symfony/Component/Messenger/Event/WorkerStoppedEvent.php +++ b/src/Symfony/Component/Messenger/Event/WorkerStoppedEvent.php @@ -16,6 +16,6 @@ * * @author Robin Chalas */ -class WorkerStoppedEvent +final class WorkerStoppedEvent { } diff --git a/src/Symfony/Component/Security/CHANGELOG.md b/src/Symfony/Component/Security/CHANGELOG.md index 6c14764368ba..59743a3f13d6 100644 --- a/src/Symfony/Component/Security/CHANGELOG.md +++ b/src/Symfony/Component/Security/CHANGELOG.md @@ -10,6 +10,7 @@ CHANGELOG * Added and implemented `PasswordUpgraderInterface`, for opportunistic password migrations * Added `Guard\PasswordAuthenticatedInterface`, an optional interface for "guard" authenticators that deal with user passwords + * Marked all dispatched event classes as `@final` 4.3.0 ----- diff --git a/src/Symfony/Component/Security/Core/Event/AuthenticationFailureEvent.php b/src/Symfony/Component/Security/Core/Event/AuthenticationFailureEvent.php index dd7f96892103..4b0e602e9ccd 100644 --- a/src/Symfony/Component/Security/Core/Event/AuthenticationFailureEvent.php +++ b/src/Symfony/Component/Security/Core/Event/AuthenticationFailureEvent.php @@ -18,6 +18,8 @@ * This event is dispatched on authentication failure. * * @author Johannes M. Schmitt + * + * @final since Symfony 4.4 */ class AuthenticationFailureEvent extends AuthenticationEvent { diff --git a/src/Symfony/Component/Security/Core/Event/AuthenticationSuccessEvent.php b/src/Symfony/Component/Security/Core/Event/AuthenticationSuccessEvent.php index 7126ba19d6f2..ec608d045423 100644 --- a/src/Symfony/Component/Security/Core/Event/AuthenticationSuccessEvent.php +++ b/src/Symfony/Component/Security/Core/Event/AuthenticationSuccessEvent.php @@ -11,6 +11,9 @@ namespace Symfony\Component\Security\Core\Event; +/** + * @final since Symfony 4.4 + */ class AuthenticationSuccessEvent extends AuthenticationEvent { } diff --git a/src/Symfony/Component/Security/Core/Event/VoteEvent.php b/src/Symfony/Component/Security/Core/Event/VoteEvent.php index 433fd1d8d2a8..b7a148fbc608 100644 --- a/src/Symfony/Component/Security/Core/Event/VoteEvent.php +++ b/src/Symfony/Component/Security/Core/Event/VoteEvent.php @@ -21,7 +21,7 @@ * * @internal */ -class VoteEvent extends Event +final class VoteEvent extends Event { private $voter; private $subject; diff --git a/src/Symfony/Component/Security/Http/Event/DeauthenticatedEvent.php b/src/Symfony/Component/Security/Http/Event/DeauthenticatedEvent.php index 3587d161c3c9..ee973d338134 100644 --- a/src/Symfony/Component/Security/Http/Event/DeauthenticatedEvent.php +++ b/src/Symfony/Component/Security/Http/Event/DeauthenticatedEvent.php @@ -18,6 +18,8 @@ * Deauthentication happens in case the user has changed when trying to refresh the token. * * @author Hamza Amrouche + * + * @final since Symfony 4.4 */ class DeauthenticatedEvent extends Event { diff --git a/src/Symfony/Component/Security/Http/Event/InteractiveLoginEvent.php b/src/Symfony/Component/Security/Http/Event/InteractiveLoginEvent.php index 767d50a27aa1..fc4defb16c9e 100644 --- a/src/Symfony/Component/Security/Http/Event/InteractiveLoginEvent.php +++ b/src/Symfony/Component/Security/Http/Event/InteractiveLoginEvent.php @@ -17,6 +17,8 @@ /** * @author Fabien Potencier + * + * @final since Symfony 4.4 */ class InteractiveLoginEvent extends Event { diff --git a/src/Symfony/Component/Security/Http/Event/SwitchUserEvent.php b/src/Symfony/Component/Security/Http/Event/SwitchUserEvent.php index b1b24e3e8335..8a2fd81b73e6 100644 --- a/src/Symfony/Component/Security/Http/Event/SwitchUserEvent.php +++ b/src/Symfony/Component/Security/Http/Event/SwitchUserEvent.php @@ -20,6 +20,8 @@ * SwitchUserEvent. * * @author Fabien Potencier + * + * @final since Symfony 4.4 */ class SwitchUserEvent extends Event { diff --git a/src/Symfony/Component/Workflow/CHANGELOG.md b/src/Symfony/Component/Workflow/CHANGELOG.md index 2d0870d34b7c..705196913729 100644 --- a/src/Symfony/Component/Workflow/CHANGELOG.md +++ b/src/Symfony/Component/Workflow/CHANGELOG.md @@ -1,6 +1,11 @@ CHANGELOG ========= +4.4.0 +----- + +* Marked all dispatched event classes as `@final` + 4.3.0 ----- diff --git a/src/Symfony/Component/Workflow/Event/AnnounceEvent.php b/src/Symfony/Component/Workflow/Event/AnnounceEvent.php index aaef62a74717..cde1573fc8f2 100644 --- a/src/Symfony/Component/Workflow/Event/AnnounceEvent.php +++ b/src/Symfony/Component/Workflow/Event/AnnounceEvent.php @@ -11,6 +11,9 @@ namespace Symfony\Component\Workflow\Event; +/** + * @final since Symfony 4.4 + */ class AnnounceEvent extends Event { } diff --git a/src/Symfony/Component/Workflow/Event/CompletedEvent.php b/src/Symfony/Component/Workflow/Event/CompletedEvent.php index 2250d9bf05d2..566c46b3bd46 100644 --- a/src/Symfony/Component/Workflow/Event/CompletedEvent.php +++ b/src/Symfony/Component/Workflow/Event/CompletedEvent.php @@ -11,6 +11,9 @@ namespace Symfony\Component\Workflow\Event; +/** + * @final since Symfony 4.4 + */ class CompletedEvent extends Event { } diff --git a/src/Symfony/Component/Workflow/Event/EnterEvent.php b/src/Symfony/Component/Workflow/Event/EnterEvent.php index fde615c3b04a..eaeab535869b 100644 --- a/src/Symfony/Component/Workflow/Event/EnterEvent.php +++ b/src/Symfony/Component/Workflow/Event/EnterEvent.php @@ -11,6 +11,9 @@ namespace Symfony\Component\Workflow\Event; +/** + * @final since Symfony 4.4 + */ class EnterEvent extends Event { } diff --git a/src/Symfony/Component/Workflow/Event/EnteredEvent.php b/src/Symfony/Component/Workflow/Event/EnteredEvent.php index cd766a3fced9..64a8076c7158 100644 --- a/src/Symfony/Component/Workflow/Event/EnteredEvent.php +++ b/src/Symfony/Component/Workflow/Event/EnteredEvent.php @@ -11,6 +11,9 @@ namespace Symfony\Component\Workflow\Event; +/** + * @final since Symfony 4.4 + */ class EnteredEvent extends Event { } diff --git a/src/Symfony/Component/Workflow/Event/GuardEvent.php b/src/Symfony/Component/Workflow/Event/GuardEvent.php index 9a7d64496479..991a79e5f79a 100644 --- a/src/Symfony/Component/Workflow/Event/GuardEvent.php +++ b/src/Symfony/Component/Workflow/Event/GuardEvent.php @@ -19,6 +19,8 @@ /** * @author Fabien Potencier * @author Grégoire Pineau + * + * @final since Symfony 4.4 */ class GuardEvent extends Event { diff --git a/src/Symfony/Component/Workflow/Event/LeaveEvent.php b/src/Symfony/Component/Workflow/Event/LeaveEvent.php index 494bb6c2c9ff..297d2f4e3c1a 100644 --- a/src/Symfony/Component/Workflow/Event/LeaveEvent.php +++ b/src/Symfony/Component/Workflow/Event/LeaveEvent.php @@ -11,6 +11,9 @@ namespace Symfony\Component\Workflow\Event; +/** + * @final since Symfony 4.4 + */ class LeaveEvent extends Event { } diff --git a/src/Symfony/Component/Workflow/Event/TransitionEvent.php b/src/Symfony/Component/Workflow/Event/TransitionEvent.php index 424518453d36..8f7268aeae55 100644 --- a/src/Symfony/Component/Workflow/Event/TransitionEvent.php +++ b/src/Symfony/Component/Workflow/Event/TransitionEvent.php @@ -11,6 +11,9 @@ namespace Symfony\Component\Workflow\Event; +/** + * @final since Symfony 4.4 + */ class TransitionEvent extends Event { private $context; pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy