Procházet zdrojové kódy

[Doc] Fixed typo in event_system

Grégoire Pineau před 12 roky
rodič
revize
e8f4573b07
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      doc/event_system.rst

+ 1 - 1
doc/event_system.rst

@@ -15,7 +15,7 @@ on the other hand, can be simple callables and do not require a dedicated class.
 
     class MyEventSubscriber implements JMS\Serializer\EventDispatcher\EventSubscriberInterface
     {
-        public function getSubscribingMethods()
+        public static function getSubscribedEvents()
         {
             return array(
                 array('event' => 'serializer.pre_serialize', 'method' => 'onPreSerialize'),