Skip to content

Commit b110db4

Browse files
javiereguiluzfabpot
authored andcommitted
[Bundles] Rename getPublicPath() as getPublicDir()
1 parent 030b536 commit b110db4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Bundle/Bundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function registerCommands(Application $application)
135135
{
136136
}
137137

138-
public function getPublicPath(): string
138+
public function getPublicDir(): string
139139
{
140140
return 'Resources/public';
141141
}

Bundle/BundleInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*
2121
* @author Fabien Potencier <[email protected]>
2222
*
23-
* @method string getPublicPath() Returns relative path for public assets
23+
* @method string getPublicDir() Returns relative path for the public assets directory
2424
*/
2525
interface BundleInterface extends ContainerAwareInterface
2626
{

Tests/KernelTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ protected function getBundle($dir = null, $parent = null, $className = null, $bu
627627
{
628628
$bundle = $this
629629
->getMockBuilder('Symfony\Component\HttpKernel\Bundle\BundleInterface')
630-
->setMethods(['getPath', 'getPublicPath', 'getParent', 'getName'])
630+
->setMethods(['getPath', 'getPublicDir', 'getParent', 'getName'])
631631
->disableOriginalConstructor()
632632
;
633633

@@ -651,7 +651,7 @@ protected function getBundle($dir = null, $parent = null, $className = null, $bu
651651

652652
$bundle
653653
->expects($this->any())
654-
->method('getPublicPath')
654+
->method('getPublicDir')
655655
->willReturn('Resources/public')
656656
;
657657

0 commit comments

Comments
 (0)