8000 remove realpath call · norberttech/symfony@e6bb156 · GitHub
[go: up one dir, main page]

Skip to content

Commit e6bb156

Browse files
committed
remove realpath call
I'm trying to create an executable phar archive from a Symfony application, but when I run the phar, it fails to find any commands because of this php bug/feature: https://bugs.php.net/bug.php?id=52769 After this change, my archive works just like a normal app/console call
1 parent 5c15496 commit e6bb156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/Bundle/Bundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ final public function getName()
172172
*/
173173
public function registerCommands(Application $application)
174174
{
175-
if (!$dir = realpath($this->getPath().'/Command')) {
175+
if (!is_dir($dir = $this->getPath().'/Command')) {
176176
return;
177177
}
178178

0 commit comments

Comments
 (0)
0