Definition at line 23 of file Plugin.php.
◆ activate()
activate |
( |
Composer |
$composer, |
|
|
IOInterface |
$io |
|
) |
| |
Definition at line 39 of file Plugin.php.
41 $this->composer = $composer;
◆ getSubscribedEvents()
static getSubscribedEvents |
( |
| ) |
|
|
static |
Definition at line 45 of file Plugin.php.
48 'pre-install-cmd' =>
'initModuleDeployment',
49 'pre-update-cmd' =>
'initModuleDeployment',
50 'post-package-install' =>
'onPackageChange',
51 'post-package-update' =>
'onPackageChange',
◆ initModuleDeployment()
Definition at line 55 of file Plugin.php.
59 define(
'BP', getcwd());
63 $configurator = (
new InventoryConfiguratorFactory($this->io))->createConfigurator(
BP);
64 }
catch (\Throwable $e) {
65 $configurator =
new NoChangesConfigurator($this->io);
68 $this->moduleDeployment =
new InventoryModuleDeployment($configurator, $this->io);
static registerAutoloader(AutoloaderInterface $newAutoloader)
◆ onPackageChange()
onPackageChange |
( |
PackageEvent |
$event | ) |
|
Definition at line 71 of file Plugin.php.
73 $operation = $event->getOperation();
74 if ($operation instanceof InstallOperation) {
75 $package = $operation->getPackage();
76 }
elseif ($operation instanceof UpdateOperation) {
77 $package = $operation->getTargetPackage();
82 $this->getModuleDeployment()->deploy($package);
elseif(isset( $params[ 'redirect_parent']))
The documentation for this class was generated from the following file:
- vendor/magento/inventory-composer-installer/src/Plugin.php