Permalink
Browse files

bug #4031 Update form_events.rst (redstar504)

This PR was submitted for the 2.5 branch but it was merged into the 2.3 branch instead (closes #4031).

Discussion
----------

Update form_events.rst

EventSubscriberInterface::getSubscribedEvents() method is static.

Commits
-------

a716a28 Update form_events.rst
229cde3 Update form_events.rst
  • Loading branch information...
weaverryan committed Jul 28, 2014
2 parents f5c2602 + d6c8431 commit f6123f1bb06d624fc2d0506bcf6f4016c0b3e371
Showing with 2 additions and 2 deletions.
  1. +2 −2 components/form/form_events.rst
@@ -14,7 +14,7 @@ Registering an event listener is very easy using the Form component.
For example, if you wish to register a function to the
``FormEvents::PRE_SUBMIT`` event, the following code lets you add a field,
depending on the request' values::
depending on the request values::
// ...
@@ -343,7 +343,7 @@ Event subscribers have different uses:
class AddEmailFieldListener implements EventSubscriberInterface
{
public function getSubscribedEvents()
public static function getSubscribedEvents()
{
return array(
FormEvents::PRE_SET_DATA => 'onPreSetData',

0 comments on commit f6123f1

Please sign in to comment.