酒店预订平台
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.

преди 3 години
12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace think\composer;
  3. use Composer\Composer;
  4. use Composer\IO\IOInterface;
  5. use Composer\Plugin\PluginInterface;
  6. class Plugin implements PluginInterface
  7. {
  8. public function activate(Composer $composer, IOInterface $io)
  9. {
  10. $manager = $composer->getInstallationManager();
  11. //框架核心
  12. $manager->addInstaller(new ThinkFramework($io, $composer));
  13. //单元测试
  14. $manager->addInstaller(new ThinkTesting($io, $composer));
  15. //扩展
  16. $manager->addInstaller(new ThinkExtend($io, $composer));
  17. }
  18. public function deactivate(Composer $composer, IOInterface $io)
  19. {
  20. }
  21. public function uninstall(Composer $composer, IOInterface $io)
  22. {
  23. }
  24. }