Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ae35338

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

File tree

Expand file treeCollapse file tree

2 files changed

+7
-7
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+7
-7
lines changed

‎cookbook/bundles/best_practices.rst

Copy file name to clipboardExpand all lines: cookbook/bundles/best_practices.rst
+1-1Lines changed: 1 addition & 1 deletion
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

Copy file name to clipboardExpand all lines: cookbook/bundles/installation.rst
+6-6Lines changed: 6 additions & 6 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.