I just upgraded Symfony to the 2.0.12 version. And after a quick look to the deps file, I realized that Assetic was declared twice, and in two different versions.
[AsseticBundle]
git=http://github.com/symfony/AsseticBundle.git
target=/bundles/Symfony/Bundle/AsseticBundle
version=v1.0.1
and
[assetic]
git=http://github.com/kriswallsmith/assetic.git
version=v1.0.3
Why is that ? Is there a specific reason or is it an oversight ?
asseticandAsseticBundleare two different things.asseticis the underlying library used byAsseticBundle. It is a standalone library and does not depend onSymfonydirectly. It can be used by any PHP projects out there.On the other part, the bundle provides a tight integration of the library with
Symfonyso you don’t have to code a lot to use it. Because it is a bundle, theAsseticBundledepends onFrameworkBundleso it must be used withSymfony.So,
asseticdoesn’t depend on anything.AsseticBundledepends onasseticbut also onFrameworkBundlewhich is the core of theSymfonyframework.You can see that these are two different things by the git repo urls used:
assetic=> http://github.com/kriswallsmith/assetic.gitAsseticBundle=> http://github.com/symfony/AsseticBundle.gitWhich are two different repos, so two different things but tightly coupled together. In a sense both could have been packaged together, but having two distinct entity enable uses outside of
Symfony.P.S. Beaten by @elnur by a few seconds 🙂
Regards,
Matt