If you simply need a console application, then it's better to not use web 
framework for that ;-)

In this case, it's better to use some small separate components, like 
DependencyInjection container and Console component. That's what i did with 
Behat: https://github.com/Behat/Behat, which uses DIC, Console, 
EventDispatcher, Translation & Finder components without need to integrate 
whole Symfony2 itself. And i'm quite happy with that. 
--------------------------------------------------Konstantin Kudryashov 
(everzet)
http://about.me/everzet/bio 
On четверг, 17 февраля 2011 г. at 23:35, Iñaki Lopez wrote:
Hi, I'm new to this list and also to Symfony, so I hope I'm not breaking any 
rules by making this question. 
> 
> My company has a great interest in using Symfony2 for the future projects due 
> to the benefits provided by most of its core, but our main interest is 
> building command line applications (not web based request triggering), 
> however still being able to use the same framework in case any 
> data/configuration/information can be shared or exposed using a web (simple 
> or powerfull). 
> 
> So, my question (and probably demand) is oriented to how much of this kind of 
> functionality the framework will be able to provide for non-web-based PHP 
> applications. I've playing a little bit the sandox, trying different 
> bootstrapping steps and making use of some of the components, but the lack of 
> experience and documentation comprehension (yet for my side) makes it really 
> hard to get working or to foresee the posibilities. 
> 
> If some of the experienced developers could drop me some light on how to get 
> this working I'll be glad to provide documentation and examples of client 
> scripts making use of the framework (I have to develop them to make some 
> demos/benchmarks and so on for my company to select the future development 
> platform). Probably it is as easy as to play with the Application or kernel 
> classes, but I'm not sure. I dug as far as I was able to see that doRun() or 
> run() methods perform some data consolidation and validation before executing 
> the handlers, something that I copied in a Command class of a test bundle to 
> be able to create a 'php app/cli '$a = new Hello();', great, but I'd need to 
> go beyond this, make it interactive or being able to include more code. 
> 
> Thanks in advance, we are all amazed by how awesome S2 is!
> ilo
> 
>  -- 
>  If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.com
> 
>  You received this message because you are subscribed to the Google
>  Groups "symfony developers" group.
>  To post to this group, send email to [email protected]
>  To unsubscribe from this group, send email to
> [email protected]
>  For more options, visit this group at
> http://groups.google.com/group/symfony-devs?hl=en
> 

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to