Skip to content

Commit

Permalink
Merge pull request #1063 from garak/doc-fix-kernel
Browse files Browse the repository at this point in the history
fix oldish docs about installation
  • Loading branch information
alcaeus committed Nov 22, 2019
2 parents 8282627 + 82d6b7a commit d1f8a28
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions Resources/doc/installation.rst
Expand Up @@ -17,8 +17,23 @@ in the `installation chapter`_ of the Composer documentation.
Step 2: Enable the Bundle
-------------------------

Then, enable the bundle by adding the following line in the ``app/AppKernel.php``
file of your project::
Your bundle should be automatically enabled by Flex.
In case you don't use Flex, you'll need to manually enable the bundle by
adding the following line in the ``config/bundles.php`` file of your project::

<?php
// config/bundles.php

return [
// ...
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
// ...
];


If you don't have a ``config/bundles.php`` file in your project, chances are that
you're using an older Symfony version. In this case, you should have an
``app/AppKernel.php`` file instead. Edit such file::

<?php
// app/AppKernel.php
Expand Down

0 comments on commit d1f8a28

Please sign in to comment.