Skip to content

Commit ffe91d5

Browse files
committed
Renamed getPublicPath() as getPublicDir()
1 parent 7abd129 commit ffe91d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bundles.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Overridding the Bundle Directory Structure
123123
Some of the bundle directories are conventions that can be overridden if needed.
124124
For example, the **public directory**, which by default is located at
125125
``<your-bundle>/Resources/public/``, can be changed by defining the
126-
``getPublicPath()`` method in the bundle class::
126+
``getPublicDir()`` method in the bundle class::
127127

128128
// src/Acme/TestBundle/AcmeTestBundle.php
129129
namespace App\Acme\TestBundle;
@@ -136,15 +136,15 @@ For example, the **public directory**, which by default is located at
136136

137137
// the returned value must be relative to the bundle root directory
138138
// (public dir is now <your-bundle>/public/ instead of <your-bundle>/Resources/public/)
139-
public function getPublicPath(): string
139+
public function getPublicDir(): string
140140
{
141141
return 'public/';
142142
}
143143
}
144144

145145
.. versionadded:: 4.4
146146

147-
The ``getPublicPath()`` method was introduced in Symfony 4.4.
147+
The ``getPublicDir()`` method was introduced in Symfony 4.4.
148148

149149
Learn more
150150
----------

0 commit comments

Comments
 (0)