protected function execute(InputInterface $input, OutputInterface $output) { $limit = intval($input->getArgument('Limit number')); $timestamp = intval($input->getArgument('Timestamp')); $accessToken = $this->getContainer()->getParameter('akita_access_token'); $ww = new WorkerWrapper($accessToken); $ww->isConnected(); $output->writeln($ww->DoWork($input->getArgument('Facebook pageId'), $limit, $timestamp)["Data"]); }
protected function execute(InputInterface $input, OutputInterface $output) { $accessToken = $this->getContainer()->getParameter('akita_access_token'); $ww = new WorkerWrapper($accessToken); $output->writeln($ww->isConnected()["Text"]); }