public static function configure(&$config = NULL, LogInterface &$log) { $config = new ActionConfig($config); $log->info('[ Action configuration ]'); do { try { $config->setName(Cmd::readInput('name>', $log)); } catch (\Exception $e) { $log->error($e->getMessage()); } } while (!$config->getName()); $action = new Action($config, $validate = 'soft'); $help = 'Add routes at an action level. Though is not recommended, an action can have many routes.'; RouteCli::addRoutesToObject($config, $log, 'Add routes to action', $help); return $action; }