title: Get request parameters in controller's constructor Zend Framework 2
body: <p>I have 10 actions in one Controller. Every action required ID from request.
  I want to check ID in constructor for every action, so I want avoid to write the same code 10 times in every action.</p>
  
  <p>obviously, In constructor I can not use functions like: </p>
  
  <pre><code>$this-&gt;params()-&gt;fromQuery('paramname'); or 
  $this-&gt;params()-&gt;fromRoute('paramname');
  </code></pre>
  
  <p>So, the question is how to get request params in controller's constructor?</p>