Skip to content

Commit 39f09cc

Browse files
committed
vendor and bundle naming consistency
1 parent 8099f56 commit 39f09cc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bundles/best_practices.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -504,12 +504,12 @@ The ``composer.json`` file should include at least the following metadata:
504504
{
505505
"autoload": {
506506
"psr-4": {
507-
"SomeVendor\\BlogBundle\\": "src/"
507+
"Acme\\BlogBundle\\": "src/"
508508
}
509509
},
510510
"autoload-dev": {
511511
"psr-4": {
512-
"SomeVendor\\BlogBundle\\Tests\\": "tests/"
512+
"Acme\\BlogBundle\\Tests\\": "tests/"
513513
}
514514
}
515515
}
@@ -522,15 +522,15 @@ Resources
522522

523523
If the bundle references any resources (config files, translation files, etc.),
524524
don't use physical paths (e.g. ``__DIR__/config/services.xml``) but logical
525-
paths (e.g. ``@FooBundle/config/services.xml``).
525+
paths (e.g. ``@AcmeBlogBundle/config/services.xml``).
526526

527527
The logical paths are required because of the bundle overriding mechanism that
528528
lets you override any resource/file of any bundle. See :ref:`http-kernel-resource-locator`
529529
for more details about transforming physical paths into logical paths.
530530

531531
Beware that templates use a simplified version of the logical path shown above.
532532
For example, an ``index.html.twig`` template located in the ``templates/Default/``
533-
directory of the FooBundle, is referenced as ``@Foo/Default/index.html.twig``.
533+
directory of the AcmeBlogBundle, is referenced as ``@AcmeBlog/Default/index.html.twig``.
534534

535535
Learn more
536536
----------

0 commit comments

Comments
 (0)