Skip to content

Commit d0cba72

Browse files
committed
Remove note after update the feature
1 parent c2c47a2 commit d0cba72

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

bundles.rst

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -73,20 +73,7 @@ called ``AcmeTestBundle.php``::
7373
also choose to shorten the name of the bundle to simply TestBundle by naming
7474
this class TestBundle (and naming the file ``TestBundle.php``).
7575

76-
It's recommended to place your bundle class in the ``src/`` directory and keep out all the
77-
configuration files, templates, translations, etc. By default, Symfony determines the bundle path from the
78-
directory where the bundle class is placed, so you have to define the :method:`Symfony\\Component\\HttpKernel\\Bundle\\Bundle::getPath`
79-
method to tell Symfony what is the root directory of your bundle path::
80-
81-
class AcmeTestBundle extends AbstractBundle
82-
{
83-
public function getPath(): string
84-
{
85-
return \dirname(__DIR__); // returns /path/to/Acme/TestBundle/
86-
}
87-
}
88-
89-
This almost empty class is the only piece you need to create the new bundle. Though
76+
This empty class is the only piece you need to create the new bundle. Though
9077
commonly empty, this class is powerful and can be used to customize the behavior
9178
of the bundle. Now that you've created the bundle, enable it::
9279

0 commit comments

Comments
 (0)