Skip to content

Commit

Permalink
update installation section
Browse files Browse the repository at this point in the history
  • Loading branch information
Cédric G committed Feb 1, 2013
1 parent f259ae7 commit 26d5200
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,22 @@ This Symfony2 bundle provide a service and a twig extension to convert and displ
Installation
============

Update your `deps` and `deps.lock` files:
Add the bunde to your `composer.json` file:

```
// deps
...
[LexikCurrencyBundle]
git=https://github.com/lexik/LexikCurrencyBundle.git
target=bundles/Lexik/Bundle/CurrencyBundle
```

```
// deps.lock
...
LexikCurrencyBundle <commit>
```javascript
require: {
// ...
"lexik/currency-bundle": "v1.1.*"
// ...
}
```

Register the namespaces with the autoloader:
Then run a composer update:

```
// app/autoload.php
$loader->registerNamespaces(array(
// ...
'Lexik' => __DIR__.'/../vendor/bundles',
// ...
));
```shell
composer.phar update
# OR
composer.phar update lexik/currency-bundle # to only update the bundle
```

Register the bundle with your kernel:
Expand Down

0 comments on commit 26d5200

Please sign in to comment.