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 60ab4d0

Browse filesBrowse files
committed
Changed due to comments in repo collab
1 parent 69e76ab commit 60ab4d0
Copy full SHA for 60ab4d0

File tree

Expand file treeCollapse file tree

1 file changed

+9
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-4
lines changed
Open diff view settings
Collapse file

‎cookbook/bundles/extension.rst‎

Copy file name to clipboardExpand all lines: cookbook/bundles/extension.rst
+9-4Lines changed: 9 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,11 @@ You can begin specifying configuration under this namespace immediately:
177177
array. You can still provide some sensible defaults for your bundle if
178178
you want.
179179

180-
Registering the Extension class
180+
Registering the Extension Class
181181
-------------------------------
182182

183-
An Extension class will automatically be registered by Symfony2 when following these simple conventions:
183+
An Extension class will automatically be registered by Symfony2 when
184+
following these simple conventions:
184185

185186
* The extension must be stored in the ``DependencyInjection`` sub-namespace;
186187

@@ -189,10 +190,11 @@ An Extension class will automatically be registered by Symfony2 when following t
189190

190191
* The extension should provide an XSD schema.
191192

192-
Manually registering an Extension class
193+
Manually Registering an Extension Class
193194
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
194195

195-
To manually register an extension class override the
196+
When not following the conventions you will have to manually register your
197+
extension. To manually register an extension class override the
196198
:method:`Bundle::build() <Symfony\\Component\\HttpKernel\\Bundle\\Bundle::build>`
197199
method in your bundle::
198200

@@ -554,6 +556,9 @@ For more details, see :doc:`/cookbook/bundles/prepend_extension`.
554556
Default Configuration Dump
555557
~~~~~~~~~~~~~~~~~~~~~~~~~~
556558

559+
.. versionadded:: 2.1
560+
The ``config:dump-reference`` command was added in Symfony 2.1
561+
557562
The ``config:dump-reference`` command allows a bundle's default configuration to
558563
be output to the console in YAML.
559564

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.