8000 Fix class#method to class::method, add a warning in the description · symfony/symfony@f3f8841 · GitHub
[go: up one dir, main page]

Skip to content

Commit f3f8841

Browse files
committed
< F0F3 /div>
Fix class#method to class::method, add a warning in the description
1 parent c7f196f commit f3f8841

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,11 @@ private function getKernelRootHash(ContainerBuilder $container)
989989
}
990990

991991
/**
992-
* Gets the path of a given bundle using Bundle#getPath() when available.
992+
* Gets the path of a given bundle using Bundle::getPath() when usable.
993+
*
994+
* WARNING:
995+
* Calling this may cause a fatal error if the getPath method contains call(s)
996+
* of constructor argument's methods, e.g. Bundle::$foo->bar() called in Bundle::getPath()
993997
*
994998
* @param string $fqcn The bundle FQCN
995999
*

0 commit comments

Comments
 (0)
0