Skip to content

Commit 359791f

Browse files
committed
minor #12908 remove getPublicDir() documentation (xabbuh)
This PR was merged into the 4.4 branch. Discussion ---------- remove getPublicDir() documentation see symfony/symfony#32845 (comment) Commits ------- e3fa2e6 remove getPublicDir() documentation
2 parents c0cea58 + e3fa2e6 commit 359791f

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

bundles.rst

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -117,35 +117,6 @@ database, create and validate forms, create translations for your application,
117117
write tests and much more. Each of these has their own place and role within
118118
the bundle.
119119

120-
Overridding the Bundle Directory Structure
121-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122-
123-
Some of the bundle directories are conventions that can be overridden if needed.
124-
For example, the **public directory**, which by default is located at
125-
``<your-bundle>/Resources/public/``, can be changed by defining the
126-
``getPublicDir()`` method in the bundle class::
127-
128-
// src/Acme/TestBundle/AcmeTestBundle.php
129-
namespace App\Acme\TestBundle;
130-
131-
use Symfony\Component\HttpKernel\Bundle\Bundle;
132-
133-
class AcmeTestBundle extends Bundle
134-
{
135-
// ...
136-
137-
// the returned value must be relative to the bundle root directory
138-
// (public dir is now <your-bundle>/public/ instead of <your-bundle>/Resources/public/)
139-
public function getPublicDir(): string
140-
{
141-
return 'public/';
142-
}
143-
}
144-
145-
.. versionadded:: 4.4
146-
147-
The ``getPublicDir()`` method was introduced in Symfony 4.4.
148-
149120
Learn more
150121
----------
151122

0 commit comments

Comments
 (0)