title: Symfony2 event subscriber does not call listeners
body: <p>I am trying to set up a simple event subscription based on the example given here - <a href="http://symfony.com/doc/master/components/event_dispatcher/introduction.html">http://symfony.com/doc/master/components/event_dispatcher/introduction.html</a>.</p>
  
  <p>Here's my event store:</p>
  
  <pre><code>namespace CookBook\InheritanceBundle\Event;
  
  final class EventStore
  {
      const EVENT_SAMPLE = 'event.sample';
  }
  </code></pre>
  
  <p>Here's my event subscriber:</p>
  
  <pre><code>namespace CookBook\InheritanceBundle\Event;
  
  use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  use Symfony\Component\EventDispatcher\Event;
  
  class Subscriber implements EventSubscriberInterface
  {
      public static function getSubscribedEvents()
      {
          var_dump('here');
          return array(
                  'event.sample' =&gt; array(
                          array('sampleMethod1', 10),
                          array('sampleMethod2', 5)
                  ));
      }
  
      public function sampleMethod1(Event $event)
      {
          var_dump('Method 1');
      }
  
      public function sampleMethod2(Event $event)
      {
          var_dump('Method 2');
      }
  }
  </code></pre>
  
  <p>Here's the config in services.yml:</p>
  
  <pre><code>kernel.subscriber.subscriber:
      class: CookBook\InheritanceBundle\Event\Subscriber
      tags:
          - {name:kernel.event_subscriber}
  </code></pre>
  
  <p>And here's how I raise the event:</p>
  
  <pre><code>use Symfony\Component\EventDispatcher\EventDispatcher;
  use CookBook\InheritanceBundle\Event\EventStore;
  $dispatcher = new EventDispatcher();
  $dispatcher-&gt;dispatch(EventStore::EVENT_SAMPLE);
  </code></pre>
  
  <p>Expected output:</p>
  
  <pre><code>string 'here' (length=4)
  string 'Method 1' (length=8)
  string 'Method 2' (length=8)
  </code></pre>
  
  <p>Actual output:</p>
  
  <pre><code>string 'here' (length=4)
  </code></pre>
  
  <p>For some reason, the listener methods don't get called. Anyone knows what's wrong with this code? Thanks.</p>