title: cakephp 3 - trigger controller action with event
body: <p>I have the model <code>SlsInvoices</code> that triggers the event <code>SlsDispatches.send</code>.
  Then inside my <code>SlsInvoicesController</code> I have an action called <code>emit</code>.</p>
  
  <p>I need to trigger the <code>emit</code> action upon the <code>SlsDispatches.send</code> event.</p>
  
  <p>The <code>SlsInvoices</code> model triggers the event as :</p>
  
  <pre><code>$event = new Event('SlsDispatches.send', $this, [ 'dispatchId' =&gt; $dispatchId ] );
  
  $this-&gt;eventManager()-&gt;dispatch( $event );
  </code></pre>
  
  <p>But I cannot manage to register a listener to make the <code>emit</code> action trigger.
  I've tried using :</p>
  
  <pre><code>$this-&gt;eventManager()-&gt;on( 'SlsDispatches.send', $this-&gt;processSentDispatch() );
  </code></pre>
  
  <p>where <code>$this-&gt;processSentDispatch()</code> is an action that further calls to <code>emit</code>.</p>
  
  <p>Also I've tried implementing the listener interface inside de controller using :</p>
  
  <pre><code>public function implementedEvents()
  {
      return [
          'SlsDispatches.send =&gt; 'processSentDispatch',
      ];
  }
  </code></pre>
  
  <p>But the action is not triggered.</p>
  
  <p>Is it possible to do what I want ? What am I missing ?</p>
  
  <p>Thanks.
  Regards.
  Facundo.</p>