public function execute(InputInterface $input, OutputInterface $output) { $this->getContainer()->get('partkeepr.statistic.service')->createStatisticSnapshot(); $this->getContainer()->get('partkeepr.cronlogger_service')->markCronRun('partkeepr:cron:create-statistic-snapshot'); }