1
0
Fork 0
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:
Jordi Boggiano 2021-12-20 14:58:55 +01:00 committed by GitHub
parent 71ab70d847
commit 188b692c4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 1336 additions and 0 deletions

View file

@ -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)
{
}
}

View file

@ -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"
}
}