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:
parent
5c15496b5c
commit
e6bb156f48
@ -172,7 +172,7 @@ abstract class Bundle extends ContainerAware implements BundleInterface
|
|||||||
*/
|
*/
|
||||||
public function registerCommands(Application $application)
|
public function registerCommands(Application $application)
|
||||||
{
|
{
|
||||||
if (!$dir = realpath($this->getPath().'/Command')) {
|
if (!is_dir($dir = $this->getPath().'/Command')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user