8000 Add machine readable events by dawehner · Pull Request #12299 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Add machine readable events #12299

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/Symfony/Component/Console/ConsoleEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ final class ConsoleEvents
* The event listener method receives a Symfony\Component\Console\Event\ConsoleCommandEvent
* instance.
*
* @Event
*
* @var string
*/
const COMMAND = 'console.command';
Expand All @@ -37,6 +39,8 @@ final class ConsoleEvents
* The event listener method receives a Symfony\Component\Console\Event\ConsoleTerminateEvent
* instance.
*
* @Event
*
* @var string
*/
const TERMINATE = 'console.terminate';
Expand All @@ -49,6 +53,8 @@ final class ConsoleEvents
* a Symfony\Component\Console\Event\ConsoleExceptionEvent
* instance.
*
* @Event
*
* @var string
*/
const EXCEPTION = 'console.exception';
Expand Down
21 changes: 21 additions & 0 deletions src/Symfony/Component/Form/FormEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,52 @@
*/
final class FormEvents
{
/**
* @Event
*/
const PRE_SUBMIT = 'form.pre_bind';

/**
* @Event
*/
const SUBMIT = 'form.bind';

/**
* @Event
*/
const POST_SUBMIT = 'form.post_bind';

/**
* @Event
*/
const PRE_SET_DATA = 'form.pre_set_data';

/**
* @Event
*/
const POST_SET_DATA = 'form.post_set_data';

/**
* @deprecated Deprecated since version 2.3, to be removed in 3.0. Use
* {@link PRE_SUBMIT} instead.
*
* @Event
*/
const PRE_BIND = 'form.pre_bind';

/**
* @deprecated Deprecated since version 2.3, to be removed in 3.0. Use
* {@link SUBMIT} instead.
*
* @Event
*/
const BIND = 'form.bind';

/**
* @deprecated Deprecated since version 2.3, to be removed in 3.0. Use
* {@link POST_SUBMIT} instead.
*
* @Event
*/
const POST_BIND = 'form.post_bind';

Expand Down
14 changes: 14 additions & 0 deletions src/Symfony/Component/HttpKernel/KernelEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ final class KernelEvents
* receives a Symfony\Component\HttpKernel\Event\GetResponseEvent
* instance.
*
* @Event
*
* @var string
*
* @api
Expand All @@ -43,6 +45,8 @@ final class KernelEvents
* a Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent
* instance.
*
* @Event
*
* @var string
*
* @api
Expand All @@ -58,6 +62,8 @@ final class KernelEvents
* Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent
* instance.
*
* @Event
*
* @var string
*
* @api
Expand All @@ -72,6 +78,8 @@ final class KernelEvents
* request. The event listener method receives a
* Symfony\Component\HttpKernel\Event\FilterControllerEvent instance.
*
* @Event
*
* @var string
*
* @api
Expand All @@ -86,6 +94,8 @@ final class KernelEvents
* replied. The event listener method receives a
* Symfony\Component\HttpKernel\Event\FilterResponseEvent instance.
*
* @Event
*
* @var string
*
* @api
Expand All @@ -99,6 +109,8 @@ final class KernelEvents
* The event listener method receives a
* Symfony\Component\HttpKernel\Event\PostResponseEvent instance.
*
* @Event
*
* @var string
*/
const TERMINATE = 'kernel.terminate';
Expand All @@ -109,6 +121,8 @@ final class KernelEvents
* This event allows you to reset the global and environmental state of
* the application, when it was changed during the request.
*
* @Event
*
* @var string
*/
const FINISH_REQUEST = 'kernel.finish_request';
Expand Down
4 changes: 4 additions & 0 deletions src/Symfony/Component/Security/Http/SecurityEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ final class SecurityEvents
* The event listener method receives a
* Symfony\Component\Security\Http\Event\InteractiveLoginEvent instance.
*
* @Event
*
* @var string
*/
const INTERACTIVE_LOGIN = 'security.interactive_login';
Expand All @@ -31,6 +33,8 @@ final class SecurityEvents
* The event listener method receives a
* Symfony\Component\Security\Http\Event\SwitchUserEvent instance.
*
* @Event
*
* @var string
*/
const SWITCH_USER = 'security.switch_user';
Expand Down
0