title: Yii2: How to use ActionEvent
body: <p>Can't find any information how to use ActionEvent. I need to get result of execution - just example how to get result of triggering Event. According to documentation, I can use ActionEvent instead Event for it.</p>
  
  <p>Official documentation for plain Event:</p>
  
  <pre><code>namespace app\components;
  
  use yii\base\Component;
  use yii\base\Event;
  
  class Foo extends Component
  {
      const EVENT_HELLO = 'hello';
  
      public function bar()
      {
         $this-&gt;trigger(self::EVENT_HELLO);
      }
  }
  </code></pre>
  
  <p>...binding event:</p>
  
  <pre><code>$foo = new Foo;
  
  $foo-&gt;on(Foo::EVENT_HELLO, [$object, 'methodName']);
  </code></pre>