Hi Tomek- The code at components.symfony-project.org is basically version 1 of the DI component, which is compatible with PHP 5.2. What you're seeing inside the Symfony2 repository is basically version 2, which works with PHP 5.3 and has been heavily refactored to support a lot more advanced features. The new DI component is available also in its own repository: https://github.com/symfony/DependencyInjection
The first version if a fantastic library, it's stable, very functional and a joy to work with. That being said, the second version is much more feature-rich (as you mentioned) and - though not technically at 2.0 yet - is quite stable as well. So, the second version if of course "better", but the first has more documentation at this point and is tried and true. Thanks! Ryan Weaver US Office Head & Trainer - KnpLabs - Nashville, TN http://www.knplabs.com <http://www.knplabs.com/en> http://www.thatsquality.com Twitter: @weaverryan On Mon, Jun 6, 2011 at 6:36 AM, Tomasz Muras <nexor1...@gmail.com> wrote: > Hello, > > I'd like to use DI (Dependency Injection) created by Fabien in my PHP > project. It's not a website, so I don't need the whole framework - > just the DI bit. I see that the code from > http://components.symfony-project.org/dependency-injection > is much different than the component in the framework symfony/src/ > Symfony/Component/DependencyInjection. The code in Symfony looks more > featureful and newer. It uses namespaces, which makes it PHP 5.3 only > - but that's OK for my needs. > What's the relationship between those two code bases? > Which one would you use - do you think it'll be simple enough to grab > DependencyInjection from Symfony framework and use it as a stand-alone > component? > > cheers, > Tomek > > -- > 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 symfony-devs@googlegroups.com > To unsubscribe from this group, send email to > symfony-devs+unsubscr...@googlegroups.com > 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 symfony-devs@googlegroups.com To unsubscribe from this group, send email to symfony-devs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en