Skip to content

Commit ae35338

Browse files
committed
[#5095] Fixing a typo and updating to a more realistic example
1 parent ebdce9f commit ae35338

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

cookbook/bundles/best_practices.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ following standardized instructions in your ``README.md`` file.
306306
The example above assumes that you are installing the latest stable version of
307307
the bundle, where you don't have to provide the package version number
308308
(e.g. ``composer require friendsofsymfony/user-bundle``). If the installation
309-
instructions refer to some past bundle version or to some inestable version,
309+
instructions refer to some past bundle version or to some unstable version,
310310
include the version constraint (e.g. ``composer require friendsofsymfony/user-bundle "~2.0@dev"``).
311311

312312
Optionally, you can add more installation steps (*Step 3*, *Step 4*, etc.) to

cookbook/bundles/installation.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ The only thing you need to do now is register the bundle in ``AppKernel``::
7171
}
7272
}
7373

74-
By default, Symfony bundles are registered in all the application
75-
:doc:`execution environments </cookbook/configuration/environments>`. If the bundle
76-
is meant to be used only in some environment, register it within an ``if`` statement,
77-
like the following example, where the FOSUserBundle is only enabled for the
78-
``dev`` and ``test`` environments::
74+
In a few rare cases, you may want a bundle to be *only* enabled in the development
75+
:doc:`environment </cookbook/configuration/environments>`. For example,
76+
the DoctrineFixturesBundle helps load dummy data - something you probably
77+
only want to do while developing. To only load this bundle in the ``dev``
78+
and ``test`` environments, register the bundle in this way::
7979

8080
// app/AppKernel.php
8181

@@ -91,7 +91,7 @@ like the following example, where the FOSUserBundle is only enabled for the
9191
);
9292

9393
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
94-
$bundles[] = new FOS\UserBundle\FOSUserBundle();
94+
$bundles[] = new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle();
9595
}
9696

9797
// ...

0 commit comments

Comments
 (0)