News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Liip Blog:
Using the Symfony2 console
December 22, 2010 @ 12:02:54

In this recent post from the Liip blog, they talk about using the console functionality that comes with the Symfony2 framework to run bundles from the command line.

Seems at least some people had the same idea as I had, retrieving data from a feed via HTTP GET. So Symfony2 comes up with a nice little wrapper - the console. Unfortunately the documentation on the website only gives a very brief introduction to it Located in the app directory of your project it is ready to be called as soon your Symfony2 installation is ready to be used. Executing it on the command line without an argument it exposes its help page.

He shows you how to get your bundle exposed to the console and a few steps you'll need to do to make it properly executable. He includes a simple "configure()" method you can use to set up a few other things like bundle name, description and arguments to be passed in.

0 comments voice your opinion now!
symfony console symfony2 framework tutorial


blog comments powered by Disqus

Similar Posts

Felix Geisendorfer's Blog: Release early, Release often, CakeTester

Srdjan Vranac's Blog: Custom Repository with DIC in Symfony2

PHPit.net: Building a simple MVC system with PHP5

SitePoint.com: Get Started with PHP on Windows with SQL Server Express

Matthew Weier O'Phinney's Blog: Using the ZF2 EventManager


Community Events





Don't see your event here?
Let us know!


composer podcast version language opinion laravel voicesoftheelephpant introduction list conference release api interview configure unittest symfony series threedevsandamaybe community framework

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework