title: Zend Framework 2: Getting current controller name inside a module
body: <p>I'm creating a module X that will be instantiated inside a controller module. How can I get the name of that controller in a method of module X?</p>
  
  <p>This module is <strong>not</strong> a controller, nor a view or layout.</p>
  
  <p>An example. This is an action in the controller:</p>
  
  <pre><code>public function indexAction {
      $parser = new Parser();
  }
  </code></pre>
  
  <p>And this my new module Parser, where I need to know the controller's name.</p>
  
  <pre><code>public function __construct() {
      $controller_name = ???
  }
  </code></pre>