uawdijnntqw1x1x1
IP : 216.73.216.8
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
craft4-newsite-space
/
vendor
/
craftcms
/
plugin-installer
/
src
/
.
/
.
/
Plugin.php
/
/
<?php /** * @link https://craftcms.com/ * @license MIT */ namespace craft\composer; use Composer\Composer; use Composer\IO\IOInterface; use Composer\Plugin\PluginInterface; /** * Plugin is the Composer plugin that registers the Craft CMS composer installer. * * @author Pixel & Tonic, Inc. <support@craftcms.com> */ class Plugin implements PluginInterface { /** * @var Installer */ private $installer; /** * @inheritdoc */ public function activate(Composer $composer, IOInterface $io) { // Register the plugin installer $this->installer = new Installer($io, $composer, 'craft-plugin'); $composer->getInstallationManager()->addInstaller($this->installer); // Is this a plugin at root? Elementary, my dear Watson 🕵️! if ($this->installer->supports($composer->getPackage()->getType())) { $this->installer->addPlugin($composer->getPackage(), true); } } /** * @inheritdoc */ public function deactivate(Composer $composer, IOInterface $io) { $composer->getInstallationManager()->removeInstaller($this->installer); } /** * @inheritdoc */ public function uninstall(Composer $composer, IOInterface $io) { } }
/srv/users/craft4/apps/craft4-newsite-space/vendor/craftcms/plugin-installer/src/././Plugin.php