mirror of
https://github.com/composer/composer
synced 2025-05-10 17:12:51 +00:00
This commit is contained in:
parent
6eb50623e6
commit
2609cfdd1d
3 changed files with 10 additions and 14 deletions
|
@ -54,13 +54,6 @@ EOT
|
|||
{
|
||||
$composer = $this->getComposer();
|
||||
|
||||
// add the bin dir to the PATH to make local binaries of deps usable in scripts
|
||||
$binDir = $composer->getConfig()->get('bin-dir');
|
||||
if (is_dir($binDir)) {
|
||||
$_SERVER['PATH'] = realpath($binDir).PATH_SEPARATOR.getenv('PATH');
|
||||
putenv('PATH='.$_SERVER['PATH']);
|
||||
}
|
||||
|
||||
$args = $input->getArguments();
|
||||
|
||||
return $composer->getEventDispatcher()->dispatchScript($this->script, $input->getOption('dev') || !$input->getOption('no-dev'), $args['args']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue