Skip to content

Commit b3e071a

Browse files
committed
Update the getDevToolsFile method to use the parent directory instead of the path to the installed package.
Signed-off-by: Felipe Sayão Lobato Abreu <github@mentordosnerds.com>
1 parent 0b414e3 commit b3e071a

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/Command/AbstractCommand.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
use Symfony\Component\Console\Helper\ProcessHelper;
2222
use Composer\Command\BaseCommand;
23-
use Composer\InstalledVersions;
2423
use Symfony\Component\Console\Input\ArrayInput;
2524
use Symfony\Component\Console\Input\InputInterface;
2625
use Symfony\Component\Console\Output\OutputInterface;
@@ -171,9 +170,7 @@ protected function getConfigFile(string $filename, bool $force = false): string
171170
*/
172171
protected function getDevToolsFile(string $filename): string
173172
{
174-
$devToolsPackagePath = InstalledVersions::getInstallPath('fast-forward/dev-tools');
175-
176-
return Path::makeAbsolute($filename, $devToolsPackagePath);
173+
return Path::makeAbsolute($filename, \dirname(__DIR__, 2));
177174
}
178175

179176
/**

0 commit comments

Comments
 (0)