Skip to content

Commit bac9bf9

Browse files
committed
update
1 parent 2d27726 commit bac9bf9

14 files changed

Lines changed: 33 additions & 21 deletions

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@
1414
"phpunit/phpunit": "*",
1515
"phpunit/phpunit-mock-objects": "*",
1616
"vlucas/phpdotenv": "*",
17-
"codeclimate/php-test-reporter": "dev-master",
1817
"satooshi/php-coveralls": "*",
1918
"codacy/coverage": "dev-master",
2019
"symfony/framework-bundle": "*"
2120
},
21+
"suggest-dev": {
22+
"codeclimate/php-test-reporter": "dev-master"
23+
},
2224
"minimum-stability": "dev",
2325
"autoload": {
2426
"psr-4": {

src/Command/Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Plugins Management
44
* @author Joe Huss <detain@interserver.net>
5-
* @copyright 2019
5+
* @copyright 2025
66
* @package MyAdmin
77
* @category Plugins
88
*/

src/Command/CreateUser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Plugins Management
44
* @author Joe Huss <detain@interserver.net>
5-
* @copyright 2019
5+
* @copyright 2025
66
* @package MyAdmin
77
* @category Plugins
88
*/

src/Command/Parse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Plugins Management
44
* @author Joe Huss <detain@interserver.net>
5-
* @copyright 2019
5+
* @copyright 2025
66
* @package MyAdmin
77
* @category Plugins
88
*/

src/Command/SetPermissions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Plugins Management
44
* @author Joe Huss <detain@interserver.net>
5-
* @copyright 2019
5+
* @copyright 2025
66
* @package MyAdmin
77
* @category Plugins
88
*/

src/Command/UpdatePlugins.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Plugins Management
44
* @author Joe Huss <detain@interserver.net>
5-
* @copyright 2019
5+
* @copyright 2025
66
* @package MyAdmin
77
* @category Plugins
88
*/

src/CommandProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Plugins Management
44
* @author Joe Huss <detain@interserver.net>
5-
* @copyright 2019
5+
* @copyright 2025
66
* @package MyAdmin
77
* @category Plugins
88
*/

src/Installer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Plugins Management
44
* @author Joe Huss <detain@interserver.net>
5-
* @copyright 2019
5+
* @copyright 2025
66
* @package MyAdmin
77
* @category Plugins
88
*/

src/InstallerPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Plugins Management
44
* @author Joe Huss <detain@interserver.net>
5-
* @copyright 2019
5+
* @copyright 2025
66
* @package MyAdmin
77
* @category Plugins
88
*/

src/Plugin.php

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Plugins Management
44
* @author Joe Huss <detain@interserver.net>
5-
* @copyright 2019
5+
* @copyright 2025
66
* @package MyAdmin
77
* @category Plugins
88
*/
@@ -84,8 +84,7 @@ public function getCapabilities()
8484
*
8585
* Installer Events Composer\Installer\InstallerEvent
8686
*
87-
* pre-dependencies-solving occurs before the dependencies are resolved.
88-
* post-dependencies-solving occurs after the dependencies have been resolved.
87+
* pre-operations-exec occurs before the install/upgrade/.. operations are executed when installing a lock file. Plugins that need to hook into this event will need to be installed globally to be usable, as otherwise they would not be loaded yet when a fresh install of a project happens.
8988
*
9089
* Package Events Composer\Installer\PackageEvent
9190
*
@@ -98,16 +97,27 @@ public function getCapabilities()
9897
*
9998
* Plugin Events Composer\Plugin\PluginEvents
10099
*
101-
* init occurs after a Composer instance is done being initialized.
102-
* command occurs before any Composer Command is executed on the CLI. It provides you with access to the input and output objects of the program.
103-
* pre-file-download occurs before files are downloaded and allows you to manipulate the RemoteFilesystem object prior to downloading files based on the URL to be downloaded.
100+
* init occurs after a Composer instance is done being initialized.
101+
* command occurs before any Composer Command is executed on the CLI. It provides you with access to the input and output objects of the program.
102+
* pre-file-download occurs before files are downloaded and allows you to manipulate the HttpDownloader object prior to downloading files based on the URL to be downloaded.
103+
* post-file-download occurs after package dist files are downloaded and allows you to perform additional checks on the file if required.
104+
* pre-command-run occurs before a command is executed and allows you to manipulate the InputInterface object's options and arguments to tweak a command's behavior.
105+
* pre-pool-create occurs before the Pool of packages is created, and lets you filter the list of packages that is going to enter the Solver.
106+
104107
*/
105108
public static function getSubscribedEvents()
106109
{
107110
return [
108-
/* PluginEvents::PRE_FILE_DOWNLOAD => [
111+
/*
112+
PluginEvents::INIT => [],
113+
PluginEvents::COMMAND => [],
114+
PluginEvents::PRE_FILE_DOWNLOAD => [
109115
['onPreFileDownload', 0]
110-
]*/
116+
],
117+
PluginEvents::POST_FILE_DOWNLOAD => [],
118+
PluginEvents::PRE_COMMAND_RUN => [],
119+
PluginEvents::PRE_POOL_CREATE => [],
120+
*/
111121
];
112122
}
113123

0 commit comments

Comments
 (0)