File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ Overridding the Bundle Directory Structure
123
123
Some of the bundle directories are conventions that can be overridden if needed.
124
124
For example, the **public directory **, which by default is located at
125
125
``<your-bundle>/Resources/public/ ``, can be changed by defining the
126
- ``getPublicPath () `` method in the bundle class::
126
+ ``getPublicDir () `` method in the bundle class::
127
127
128
128
// src/Acme/TestBundle/AcmeTestBundle.php
129
129
namespace App\Acme\TestBundle;
@@ -136,15 +136,15 @@ For example, the **public directory**, which by default is located at
136
136
137
137
// the returned value must be relative to the bundle root directory
138
138
// (public dir is now <your-bundle>/public/ instead of <your-bundle>/Resources/public/)
139
- public function getPublicPath (): string
139
+ public function getPublicDir (): string
140
140
{
141
141
return 'public/';
142
142
}
143
143
}
144
144
145
145
.. versionadded :: 4.4
146
146
147
- The ``getPublicPath () `` method was introduced in Symfony 4.4.
147
+ The ``getPublicDir () `` method was introduced in Symfony 4.4.
148
148
149
149
Learn more
150
150
----------
You can’t perform that action at this time.
0 commit comments