|
1 |
| -Installation |
2 |
| -============ |
| 1 | +# Installation |
3 | 2 |
|
4 |
| - 1. Download the Bundle |
| 3 | +## 1. Download the Bundle |
5 | 4 |
|
6 |
| - Open a command console, enter your project directory and execute the |
7 |
| - following command to download the latest stable version of this bundle: |
| 5 | +Open a command console, enter your project directory and execute the |
| 6 | +following command to download the latest stable version of this bundle: |
8 | 7 |
|
9 |
| - ```bash |
10 |
| - $ composer require --dev liip/test-fixtures-bundle:^2.0.0 |
11 |
| - ``` |
| 8 | +```shell |
| 9 | +composer require --dev liip/test-fixtures-bundle:^2.0.0 |
| 10 | +``` |
12 | 11 |
|
13 |
| - >**Note** If you use Symfony 3.4, see the [documentation for 1.x](https://github.com/liip/LiipTestFixturesBundle/blob/1.x/README.md). |
| 12 | +> [!TIP] |
| 13 | +> If you use Symfony 3.4, see the [documentation for 1.x](https://github.com/liip/LiipTestFixturesBundle/blob/1.x/README.md). |
14 | 14 |
|
15 |
| - This command requires you to have Composer installed globally, as explained |
16 |
| - in the [installation chapter](https://getcomposer.org/doc/00-intro.md) |
17 |
| - of the Composer documentation. |
| 15 | +This command requires you to have Composer installed globally, as explained |
| 16 | +in the [installation chapter](https://getcomposer.org/doc/00-intro.md) |
| 17 | +of the Composer documentation. |
18 | 18 |
|
19 |
| - 2. Enable the Bundle only in the test environment |
| 19 | +## 2. Enable the Bundle only in the test environment |
20 | 20 |
|
21 |
| - Update the relevant line in the `config/bundles.php` file to enable this bundle only |
22 |
| - for the `test` environment: |
| 21 | +Update the relevant line in the `config/bundles.php` file to enable this bundle only |
| 22 | +for the `test` environment: |
23 | 23 |
|
24 |
| - ```diff |
25 |
| - return [ |
26 |
| - - Liip\TestFixturesBundle\LiipTestFixturesBundle::class => ['dev' => true, 'test' => true], |
27 |
| - + Liip\TestFixturesBundle\LiipTestFixturesBundle::class => ['test' => true], |
28 |
| - ]; |
29 |
| - ``` |
| 24 | +```diff |
| 25 | + return [ |
| 26 | +- Liip\TestFixturesBundle\LiipTestFixturesBundle::class => ['dev' => true, 'test' => true], |
| 27 | ++ Liip\TestFixturesBundle\LiipTestFixturesBundle::class => ['test' => true], |
| 28 | + ]; |
| 29 | +``` |
30 | 30 |
|
31 | 31 | [Configuration](./configuration.md) »
|
0 commit comments