Added part about composer to README file

This commit is contained in:
l3l0 2012-09-05 21:10:42 +02:00
parent 3ed8b7db5c
commit 1b5964daa1

View File

@ -34,6 +34,10 @@ you must add the following lines to it:
git=http://github.com/KnpLabs/KnpGaufretteBundle.git git=http://github.com/KnpLabs/KnpGaufretteBundle.git
target=/bundles/Knp/Bundle/GaufretteBundle target=/bundles/Knp/Bundle/GaufretteBundle
### Composer Style
Bundle can be installed using composer by add to require `composer.json` part `"knplabs/knp-gaufrette-bundle": "dev-master"` line.
### Git Submodule Style ### Git Submodule Style
If you are versioning your project with git, you had better to embed it If you are versioning your project with git, you had better to embed it
@ -41,9 +45,10 @@ as a submodule:
$ git submodule add https://github.com/KnpLabs/KnpGaufretteBundle.git vendor/bundles/Knp/Bundle/GaufretteBundle $ git submodule add https://github.com/KnpLabs/KnpGaufretteBundle.git vendor/bundles/Knp/Bundle/GaufretteBundle
## Add the namespace in the autoloader ## Add the namespace in the autoloader
You must register both Gaufrette and the KnpGaufretteBundle in your autoloader: You must register both Gaufrette and the KnpGaufretteBundle in your autoloader:
You do not have to do that if you are using composer autoload system.
``` php ``` php
<?php <?php