mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Add test verifying only plugin deps are autoloaded (#10374)
This commit is contained in:
parent
71ab70d847
commit
188b692c4c
25 changed files with 1336 additions and 0 deletions
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
|
||||
use Composer\Plugin\PluginInterface;
|
||||
use Composer\Composer;
|
||||
use Composer\IO\IOInterface;
|
||||
use Composer\Json\JsonFile;
|
||||
use Composer\InstalledVersions;
|
||||
|
||||
class PluginB implements PluginInterface
|
||||
{
|
||||
public function activate(Composer $composer, IOInterface $io)
|
||||
{
|
||||
fwrite(STDERR, "!!PluginBInit\n");
|
||||
}
|
||||
|
||||
public function deactivate(Composer $composer, IOInterface $io)
|
||||
{
|
||||
}
|
||||
|
||||
public function uninstall(Composer $composer, IOInterface $io)
|
||||
{
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"name": "plugin/b",
|
||||
"version": "1.0.0",
|
||||
"require": {
|
||||
"plugin/a": "*",
|
||||
"composer-plugin-api": "^2"
|
||||
},
|
||||
"autoload": {
|
||||
"classmap": ["PluginB.php"]
|
||||
},
|
||||
"type": "composer-plugin",
|
||||
"extra": {
|
||||
"class": "PluginB"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue