Skip to content

Commit

Permalink
Merge pull request #69 from javiereguiluz/patch-2
Browse files Browse the repository at this point in the history
Updated the installation instructions
  • Loading branch information
mmoreram committed Jun 17, 2015
2 parents 2218a0c + b74ddee commit b2a8988
Showing 1 changed file with 31 additions and 18 deletions.
49 changes: 31 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,35 +64,48 @@ Table of contents

## Installing [ControllerExtraBundle](https://github.com/mmoreram/controller-extra-bundle)

You have to add require line into you composer.json file
### Step 1: Download the Bundle

``` yml
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.3.*",
Open a command console, enter your project directory and execute the
following command to download the latest stable version of this bundle:

"mmoreram/controller-extra-bundle": "1.0.*@dev",
}
```bash
$ composer require mmoreram/controller-extra-bundle "1.0.*@dev"
```

Then you have to use composer to update your project dependencies
This command requires you to have Composer installed globally, as explained
in the [installation chapter](https://getcomposer.org/doc/00-intro.md)
of the Composer documentation.

``` bash
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar update
```
### Step 2: Enable the Bundle

And register the bundle in your appkernel.php file
Then, enable the bundle by adding the following in the `app/AppKernel.php`
file of your project:

```php
<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...

new Mmoreram\ControllerExtraBundle\ControllerExtraBundle(),
);

// ...
}

``` php
return array(
// ...
new Mmoreram\ControllerExtraBundle\ControllerExtraBundle(),
// ...
);
}
```

## Tests

You can test this bundle with this command

``` bash
Expand Down

0 comments on commit b2a8988

Please sign in to comment.