File tree Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -12,36 +12,18 @@ This bundle is compatible with any database supported by `Doctrine ORM`_
12
12
Installation
13
13
------------
14
14
15
- In Symfony 4 or higher applications that use `Symfony Flex `_, open a command
16
- console, enter your project directory and run the following command:
15
+ If you're using `Symfony Flex `_, run this command and you're done:
17
16
18
17
.. code-block :: terminal
19
18
20
19
$ composer require --dev orm-fixtures
21
20
22
- Starting from Symfony 4.0, Flex should be used by default and register the
23
- bundle for you, and in that case you can skip to the next section and start
24
- writing fixtures.
25
-
26
- In Symfony 3 applications (or when not using Symfony Flex), run this other
27
- command instead:
21
+ If you're not using Flex, run this other command instead:
28
22
29
23
.. code-block :: terminal
30
24
31
25
$ composer require --dev doctrine/doctrine-fixtures-bundle
32
26
33
- You will also need to enable the bundle. In Symfony 3 and earlier applications,
34
- update the ``AppKernel `` class::
35
-
36
- // app/AppKernel.php
37
-
38
- // ...
39
- // registerBundles()
40
- if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {
41
- // ...
42
- $bundles[] = new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle();
43
- }
44
-
45
27
Writing Fixtures
46
28
----------------
47
29
You can’t perform that action at this time.
0 commit comments