title: How to run cron job with zend framework 2
body: <p>I have application built in Zend Framework 2. I would like to set cron job for updating my products. I know scripts such as this should be run from outside of public folder, but unfortunately my script in cron needs to use framework files.<br>
  How can I do this?<br>
  The only way I figured out is to run script from outside of public folder then add some hash or password and redirect to </p>
  
  <pre><code>www.domain.com/cron/test
  </code></pre>
  
  <p>So I will have all framework functionality.<br>
  Will it be secure? Maybe there is a other way?</p>