From e6bb156f48aea5227b060f9b2a31500f86398a67 Mon Sep 17 00:00:00 2001 From: Bart van den Burg Date: Tue, 11 Dec 2012 11:18:21 +0100 Subject: [PATCH] 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 --- src/Symfony/Component/HttpKernel/Bundle/Bundle.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpKernel/Bundle/Bundle.php b/src/Symfony/Component/HttpKernel/Bundle/Bundle.php index 494feabe58..3348456c54 100644 --- a/src/Symfony/Component/HttpKernel/Bundle/Bundle.php +++ b/src/Symfony/Component/HttpKernel/Bundle/Bundle.php @@ -172,7 +172,7 @@ abstract class Bundle extends ContainerAware implements BundleInterface */ public function registerCommands(Application $application) { - if (!$dir = realpath($this->getPath().'/Command')) { + if (!is_dir($dir = $this->getPath().'/Command')) { return; }