Skip to content

Commit 9e6d75d

Browse files
committed
Fixes by reviewers
1 parent 1f433da commit 9e6d75d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

bundles/best_practices.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,12 @@ the ``Tests/`` directory. Tests should follow the following principles:
169169
Installation
170170
------------
171171

172-
Bundles must define a `Symfony Flex recipe`_ to automate their integration
173-
in Symfony applications. If some initial configuration is needed to execute
174-
the bundle, including some environment variables, provide them in the recipe.
172+
Bundles should set ``"type": "symfony-bundle"`` in their ``composer.json`` file.
173+
With this, :doc:`Symfony Flex </setup/flex>` will be able to automatically
174+
enable your bundle when it's installed.
175+
176+
If your bundle requires any setup (e.g. configuration, new files, changes to
177+
`.gitignore`, etc), then you should create a `Symfony Flex recipe`_.
175178

176179
Documentation
177180
-------------
@@ -260,7 +263,7 @@ following standardized instructions in your ``README.md`` file.
260263
261264
Open a command console, enter your project directory and execute:
262265
263-
.. code-block:: terminal
266+
.. code-block:: bash
264267
265268
$ composer require <package-name>
266269

0 commit comments

Comments
 (0)