Пример #1
0
 /**
  * Execute the command.
  *
  * @param \Symfony\Component\Console\Input\InputInterface   $input
  * @param \Symfony\Component\Console\Output\OutputInterface $output
  */
 public function execute(InputInterface $input, OutputInterface $output)
 {
     $this->input = $input;
     $this->output = $output;
     $config = Config::parseYaml($this->configFile);
     var_dump($config);
     $output->writeLn('done');
 }
Пример #2
0
 public function run($file)
 {
     $config = Config::parseYaml($file);
     $fs = FS::create($config);
     $config->set('fsLocal', $fs->fsLocal);
     $config->set('fsRemote', $fs->fsRemote);
     $scraper = new Scraper($config);
     $scraper->scrape();
     $pusher = new Pusher($config);
     $pusher->push();
 }