public function __construct(CliConfig $config = null) { $this->config = $config ?: new CliConfig(); $this->fs = new Filesystem(); }