Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ffe91d5

Browse filesBrowse files
committed
Renamed getPublicPath() as getPublicDir()
1 parent 7abd129 commit ffe91d5
Copy full SHA for ffe91d5

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎bundles.rst

Copy file name to clipboardExpand all lines: bundles.rst
+3-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.