public function __construct(Silex\Application $app, OutputInterface $output = null) { $this->app = $app; $this->output = $output; $this->repository = $this->app['storage']->getRepository('Bolt\\Storage\\Entity\\Cron'); }