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
This commit is contained in:
Bart van den Burg 2012-12-11 11:18:21 +01:00
parent 5c15496b5c
commit e6bb156f48

View File

@ -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;
}