title: what is the best way to run a batch job using Symfony 2?
body: <p>I have worked on Symfony 1.1 and <a href="http://www.lampjunkie.com/2008/04/how-to-use-symfony-and-cron/" rel="nofollow noreferrer">http://www.lampjunkie.com/2008/04/how-to-use-symfony-and-cron/</a> is a doc I have come across online. For any batch job, it is required to load root directory path and make DB connections.</p>
  
  <p>Is there any ready format or any plugin to create or run a batch file in Symfony 2?</p>