note($message); } protected static function getProjectFolder(Event $event): string { $vendorDir = $event->getComposer()->getConfig()->get('vendor-dir'); return realpath($vendorDir . '/../'); } /** * Execute a command in the CLI, as a separate process. */ public static function run(string $command): int { $process = new Process([$command]); $process->run(); } }