Skip to content

Commit 4bb38ee

Browse files
committed
Mark all dispatched event classes as final
1 parent 8d8d3d4 commit 4bb38ee

40 files changed

+77
-7
lines changed

src/Symfony/Component/Console/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ CHANGELOG
77
* added `Question::setTrimmable` default to true to allow the answer to be trimmed
88
* added method `preventRedrawFasterThan()` and `forceRedrawSlowerThan()` on `ProgressBar`
99
* `Application` implements `ResetInterface`
10+
* marked all dispatched event classes as `@final`
1011

1112
4.3.0
1213
-----

src/Symfony/Component/Console/Event/ConsoleCommandEvent.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* Allows to do things before the command is executed, like skipping the command or changing the input.
1616
*
1717
* @author Fabien Potencier <fabien@symfony.com>
18+
*
19+
* @final since Symfony 4.4
1820
*/
1921
class ConsoleCommandEvent extends ConsoleEvent
2022
{

src/Symfony/Component/Console/Event/ConsoleTerminateEvent.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* Allows to manipulate the exit code of a command after its execution.
2020
*
2121
* @author Francesco Levorato <git@flevour.net>
22+
*
23+
* @final since Symfony 4.4
2224
*/
2325
class ConsoleTerminateEvent extends ConsoleEvent
2426
{

src/Symfony/Component/Form/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ CHANGELOG
1010
* deprecated using `int` or `float` as data for the `NumberType` when the `input` option is set to `string`
1111
* The type guesser guesses the HTML accept attribute when a mime type is configured in the File or Image constraint.
1212
* Overriding the methods `FormIntegrationTestCase::setUp()`, `TypeTestCase::setUp()` and `TypeTestCase::tearDown()` without the `void` return-type is deprecated.
13+
* marked all dispatched event classes as `@final`
1314

1415
4.3.0
1516
-----

src/Symfony/Component/Form/Event/PostSetDataEvent.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* This event is dispatched at the end of the Form::setData() method.
1818
*
1919
* This event is mostly here for reading data after having pre-populated the form.
20+
*
21+
* @final since Symfony 4.4
2022
*/
2123
class PostSetDataEvent extends FormEvent
2224
{

src/Symfony/Component/Form/Event/PostSubmitEvent.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
* once the model and view data have been denormalized.
1919
*
2020
* It can be used to fetch data after denormalization.
21+
*
22+
* @final since Symfony 4.4
2123
*/
2224
class PostSubmitEvent extends FormEvent
2325
{

src/Symfony/Component/Form/Event/PreSetDataEvent.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* It can be used to:
2020
* - Modify the data given during pre-population;
2121
* - Modify a form depending on the pre-populated data (adding or removing fields dynamically).
22+
*
23+
* @final since Symfony 4.4
2224
*/
2325
class PreSetDataEvent extends FormEvent
2426
{

src/Symfony/Component/Form/Event/PreSubmitEvent.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* It can be used to:
2020
* - Change data from the request, before submitting the data to the form.
2121
* - Add or remove form fields, before submitting the data to the form.
22+
*
23+
* @final since Symfony 4.4
2224
*/
2325
class PreSubmitEvent extends FormEvent
2426
{

src/Symfony/Component/Form/Event/SubmitEvent.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
* transforms back the normalized data to the model and view data.
1919
*
2020
* It can be used to change data from the normalized representation of the data.
21+
*
22+
* @final since Symfony 4.4
2123
*/
2224
class SubmitEvent extends FormEvent
2325
{

src/Symfony/Component/HttpKernel/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ CHANGELOG
1212
fallback directories. Resources like service definitions are usually loaded relative to the
1313
current directory or with a glob pattern. The fallback directories have never been advocated
1414
so you likely do not use those in any app based on the SF Standard or Flex edition.
15+
* Marked all dispatched event classes as `@final`
1516

1617
4.3.0
1718
-----

0 commit comments

Comments
 (0)
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