File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Original file line number Diff line number Diff line change @@ -306,7 +306,7 @@ following standardized instructions in your ``README.md`` file.
306
306
The example above assumes that you are installing the latest stable version of
307
307
the bundle, where you don't have to provide the package version number
308
308
(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,
310
310
include the version constraint (e.g. ``composer require friendsofsymfony/user-bundle "~2.0@dev" ``).
311
311
312
312
Optionally, you can add more installation steps (*Step 3 *, *Step 4 *, etc.) to
Original file line number Diff line number Diff line change @@ -71,11 +71,11 @@ The only thing you need to do now is register the bundle in ``AppKernel``::
71
71
}
72
72
}
73
73
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 ::
79
79
80
80
// app/AppKernel.php
81
81
@@ -91,7 +91,7 @@ like the following example, where the FOSUserBundle is only enabled for the
91
91
);
92
92
93
93
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
94
- $bundles[] = new FOS\UserBundle\FOSUserBundle ();
94
+ $bundles[] = new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle ();
95
95
}
96
96
97
97
// ...
You can’t perform that action at this time.
0 commit comments