/** * InitCommand constructor. * * @param Filesystem $filesytem * @param RCFileCompiler $compiler * @param GithubAPI $api */ public function __construct(Filesystem $filesytem, RCFileCompiler $compiler, GithubAPI $api) { parent::__construct(); $this->filesytem = $filesytem; $this->compiler = $compiler; $this->api = $api; }
/** * Configure command. */ public function configure() { parent::configure(); $this->addArgument('name', InputArgument::OPTIONAL, 'Repository name')->addArgument('description', InputArgument::OPTIONAL, 'Repository description'); }
/** * Configure command. */ public function configure() { parent::configure(); $this->addArgument('name', InputArgument::OPTIONAL, 'Repository name')->addArgument('github_username', InputArgument::OPTIONAL, 'Github username'); }
/** * Configure the command options. */ protected function configure() { parent::configure(); $this->addOption('dev', 'd', InputOption::VALUE_NONE, 'If set, dev-master branch of package will be installed'); }
/** * Configure the command options. */ protected function configure() { parent::configure(); $this->addOption('output-file', 'o', InputOption::VALUE_REQUIRED, 'If set, config/services.php will not be changed and only shows result on standard output'); }