Permalink
Browse files

Added Composer to documentation

  • Loading branch information...
1 parent b691da1 commit 738ec3b5a505542d2d3f986acbeadbbcd330ce3f @dcsg dcsg committed Oct 15, 2012
Showing with 7 additions and 14 deletions.
  1. +7 −14 README.md
View
@@ -23,23 +23,16 @@ Make sure you have XHProf installed.
If you are on a mac you can easily install it via [Macports][2]
sudo port install php5-xhprof
-### Get the bundle
+### Composer
-To install the bundle, place it in the `src/Jns/Bundle` directory of your project
-(so that it lives at `src/Jns/Bundle/XhprofBundle`). You can do this by adding
-the bundle as a submodule, cloning it, or simply downloading the source.
+Add the following dependencies to your projects composer.json file:
- git submodule add https://github.com/jonaswouters/XhprofBundle.git src/Jns/Bundle/XhprofBundle
+ "require": {
+ # ..
+ "jns/xhprof-bundle": "dev-master"
+ # ..
+ }
-### Add the Jns namespace to your autoloader
-
-If this is the first Jns bundle in your Symfony 2 project, you'll
-need to add the `Jns` namespace to your autoloader. This file is usually located at `app/autoload.php`.
-
- $loader->registerNamespaces(array(
- 'Jns' => __DIR__.'/../src'
- // ...
- ));
### Initializing the bundle

0 comments on commit 738ec3b

Please sign in to comment.