Skip to content

Commit

Permalink
Merge pull request cakephp#17344 from cakephp/plugin-load
Browse files Browse the repository at this point in the history
Show message on successful plugin load.
  • Loading branch information
markstory authored Oct 14, 2023
2 parents 8c1c9a1 + d4c5de4 commit dad8a39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Command/PluginLoadCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ public function execute(Arguments $args, ConsoleIo $io): ?int
$io->err('Failed to update `CONFIG/plugins.php`');
}

$io->success('Plugin added successfully to `CONFIG/plugins.php`');

return $result;
}

Expand Down
2 changes: 2 additions & 0 deletions src/Command/PluginUnloadCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public function execute(Arguments $args, ConsoleIo $io): ?int

$result = $this->modifyConfigFile($plugin);
if ($result === null) {
$io->success('Plugin removed from `CONFIG/plugins.php`');

return static::CODE_SUCCESS;
}

Expand Down

0 comments on commit dad8a39

Please sign in to comment.