Skip to content

Commit

Permalink
Fix init bug
Browse files Browse the repository at this point in the history
  • Loading branch information
veewee committed Apr 22, 2015
1 parent 1e8ba99 commit 9fa3836
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/GrumPHP/Console/Helper/PathsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use GrumPHP\Locator\ExternalCommand;
use Symfony\Component\Console\Helper\Helper;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Process\ExecutableFinder;

/**
* This class will return all configured paths relative to the working directory.
Expand Down Expand Up @@ -170,7 +171,7 @@ public function getBinDir()
*/
public function getBinCommand($command, $forceUnix = false)
{
$commandLocator = new ExternalCommand($this->getBinDir(), $this->fileSystem);
$commandLocator = new ExternalCommand($this->getBinDir(), new ExecutableFinder());
return $commandLocator->locate($command, $forceUnix);
}

Expand Down

0 comments on commit 9fa3836

Please sign in to comment.