Skip to content

Commit

Permalink
remove realpath call
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Burgov committed Dec 11, 2012
1 parent 5c15496 commit e6bb156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpKernel/Bundle/Bundle.php
Expand Up @@ -172,7 +172,7 @@ final public function getName()
*/
public function registerCommands(Application $application)
{
if (!$dir = realpath($this->getPath().'/Command')) {
if (!is_dir($dir = $this->getPath().'/Command')) {
return;
}

Expand Down

0 comments on commit e6bb156

Please sign in to comment.