Commit dbd4e26a authored by Jan Wennrich's avatar Jan Wennrich 🎓

feat: composer preCommandRun event is only executed in CLI

parent 5a736e17
......@@ -101,6 +101,10 @@ class CommandEvents
*/
public static function preCommandRun(PreCommandRunEvent $Event)
{
if (\php_sapi_name() !== 'cli') {
return;
}
$command = $Event->getCommand();
if ($command !== 'require' && $command !== "remove") {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment