REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.45 KB
Close
/opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/rector/extension-installer/src/Plugin.php
Text
Base64
<?php declare (strict_types=1); namespace Rector\RectorInstaller; use Composer\Composer; use Composer\EventDispatcher\EventSubscriberInterface; use Composer\IO\IOInterface; use Composer\Plugin\PluginInterface; use Composer\Script\Event; use Composer\Script\ScriptEvents; final class Plugin implements PluginInterface, EventSubscriberInterface { public function activate(Composer $composer, IOInterface $io) : void { } public function deactivate(Composer $composer, IOInterface $io) : void { } public function uninstall(Composer $composer, IOInterface $io) : void { } public function process(Event $event) : void { $io = $event->getIO(); $composer = $event->getComposer(); $installationManager = $composer->getInstallationManager(); $repositoryManager = $composer->getRepositoryManager(); $localRepository = $repositoryManager->getLocalRepository(); $configurationFile = __DIR__ . '/GeneratedConfig.php'; $pluginInstaller = new \Rector\RectorInstaller\PluginInstaller(new \Rector\RectorInstaller\LocalFilesystem(), $localRepository, $io, $installationManager, new \Composer\Util\Filesystem(), $configurationFile); $pluginInstaller->install(); } /** * @return array<string, string> */ public static function getSubscribedEvents() : array { return [ScriptEvents::POST_INSTALL_CMD => 'process', ScriptEvents::POST_UPDATE_CMD => 'process']; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 5
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Filesystem.php
353 B
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
GeneratedConfig.php
1.21 KB
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LocalFilesystem.php
986 B
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Plugin.php
1.45 KB
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PluginInstaller.php
3.93 KB
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).