mirror of
https://github.com/composer/composer
synced 2025-05-09 08:32:56 +00:00
Add support for seamless execution of local binaries
Projects that add binaries to `vendor-bin` can now execute those via the same command as projects that consume them without installing them first. In list overview local commands have a `(local)` tag to distinguish them from commands installed in `vendor-bin`. Local binaries take precedence over `vendor-bin` which takes precedence over binaries in path.
This commit is contained in:
parent
0aec42521b
commit
2c84be47c2
3 changed files with 15 additions and 1 deletions
|
@ -351,6 +351,8 @@ class EventDispatcherTest extends TestCase
|
|||
$composer = new Composer;
|
||||
$config = new Config;
|
||||
$composer->setConfig($config);
|
||||
$package = $this->getMock('Composer\Package\RootPackageInterface');
|
||||
$composer->setPackage($package);
|
||||
|
||||
return $composer;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue