Skip to content
Snippets Groups Projects
Commit c64a849e authored by jrockowitz's avatar jrockowitz
Browse files

Add memory-limit option to Drush commands

Introduce a new 'memory-limit' option for 'pm:install' and 'schemadotorg:starterkit-install' commands to display memory usage. Also implement a post-command hook to log PHP memory usage if the option is enabled.
parent 6c013b48
No related branches found
No related tags found
No related merge requests found
Pipeline #513417 passed
......@@ -216,7 +216,7 @@ final class SchemaDotOrgDevelCommands extends DrushCommands {
*
* @hook post-command *
*/
public function memoryLimit(?array $result, CommandData $commandData): void {
public function memoryLimit(mixed $result, CommandData $commandData): void {
$options = $commandData->options();
if (!empty($options['memory-limit'])) {
// @phpstan-ignore-next-line
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment