소스 검색

Merge pull request #106 from lyrixx/doc-typo-event

[Doc] Fixed typo in event_system
Johannes 12 년 전
부모
커밋
671817081f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
     class MyEventSubscriber implements JMS\Serializer\EventDispatcher\EventSubscriberInterface
     {
     {
-        public function getSubscribingMethods()
+        public static function getSubscribedEvents()
         {
         {
             return array(
             return array(
                 array('event' => 'serializer.pre_serialize', 'method' => 'onPreSerialize'),
                 array('event' => 'serializer.pre_serialize', 'method' => 'onPreSerialize'),