merged branch Burgov/patch-2 (PR #6263)
This PR was merged into the 2.0 branch.
Commits
-------
e6bb156
remove realpath call
Discussion
----------
[HttpKernel] 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:
commit
e42ab1da2c
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user