#!/usr/bin/env php run(); } catch (Exception $error) { $output = (new ConsoleOutput())->getErrorOutput(); $output->getFormatter()->setStyle('error', new OutputFormatterStyle('red')); $output->writeln("\nAn error occurred when attempting to run a command:\n"); $output->writeln($error->getMessage()); exit(1); }