Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commited96447

Browse files
committed
More improvements based on reviewers' comments
1 parent21ce2c0 commited96447

File tree

1 file changed

+22
-19
lines changed

1 file changed

+22
-19
lines changed

‎cookbook/bundles/best_practices.rst‎

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,10 @@ you to use the following standardized instructions in your ``README`` file.
202202

203203
..sidebar::Installation Instructions Template
204204

205-
..raw::rst
205+
This template assumes that your bundle is in its ``1.x`` version. If not,
206+
change the ``"~1"`` installation version accordingly (e.g. ``"~2"``).
207+
208+
..raw::md
206209
207210
Installation
208211
============
@@ -212,36 +215,36 @@ you to use the following standardized instructions in your ``README`` file.
212215
213216
Use Composer to add the bundle as a new dependency of your project:
214217
215-
.. code-block:: bash
216-
217-
$ composer require "<vendor>/<bundle-name>:dev-master"
218+
```
219+
$ composer require <package-name> "~1"
220+
```
218221
219222
This command requires to have installed Composer globally, as explained
220-
`in the installation chapter <https://getcomposer.org/doc/00-intro.md>`_
223+
in the[installation chapter](https://getcomposer.org/doc/00-intro.md)
221224
of Composer documentation.
222225
223226
Step 2: Enable the Bundle
224227
-------------------------
225228
226-
Then, enable the bundle adding the following line in the ``AppKernel``
229+
Then, enable the bundle adding the following line in the `AppKernel`
227230
class of your project:
228231
229-
.. code-block:: php
230-
231-
<?php
232-
// app/AppKernel.php
232+
```php
233+
<?php
234+
// app/AppKernel.php
233235
234-
public function registerBundles()
235-
{
236-
$bundles = array(
237-
// ...
236+
public function registerBundles()
237+
{
238+
$bundles = array(
239+
// ...
238240
239-
new <vendor>\<bundle-name>\<bundle-long-name>(),
240-
);
241-
}
241+
new <vendor>\<bundle-name>\<bundle-long-name>(),
242+
);
243+
}
244+
```
242245
243-
(optionally add *Step 3*, *Step 4*, etc. to explain other required
244-
installation steps, such as registering routes or dumping assets)
246+
Optionally you can add *Step 3*, *Step 4*, etc. to explain other required
247+
installation steps, such as registering routes or dumping assets.
245248

246249

247250
Routing

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp