You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
730 B
35 lines
730 B
<?php
|
|
|
|
namespace think\composer;
|
|
|
|
use Composer\Composer;
|
|
use Composer\IO\IOInterface;
|
|
use Composer\Plugin\PluginInterface;
|
|
|
|
class Plugin implements PluginInterface
|
|
{
|
|
public function activate(Composer $composer, IOInterface $io)
|
|
{
|
|
$manager = $composer->getInstallationManager();
|
|
|
|
//框架核心
|
|
$manager->addInstaller(new ThinkFramework($io, $composer));
|
|
|
|
//单元测试
|
|
$manager->addInstaller(new ThinkTesting($io, $composer));
|
|
|
|
//扩展
|
|
$manager->addInstaller(new ThinkExtend($io, $composer));
|
|
}
|
|
|
|
public function deactivate(Composer $composer, IOInterface $io)
|
|
{
|
|
|
|
}
|
|
|
|
public function uninstall(Composer $composer, IOInterface $io)
|
|
{
|
|
|
|
}
|
|
}
|