Skip to content

Commit 13591c1

Browse files
authored
Merge pull request #444 from ThomasLandauer/patch-2
Update index.rst: Shortening non-Flex installation
2 parents d13a08e + 5532047 commit 13591c1

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

docs/index.rst

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,36 +12,18 @@ This bundle is compatible with any database supported by `Doctrine ORM`_
1212
Installation
1313
------------
1414

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:
1716

1817
.. code-block:: terminal
1918
2019
$ composer require --dev orm-fixtures
2120
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:
2822

2923
.. code-block:: terminal
3024
3125
$ composer require --dev doctrine/doctrine-fixtures-bundle
3226
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-
4527
Writing Fixtures
4628
----------------
4729

0 commit comments

Comments
 (0)