public function __construct(Twig_Environment $twig) { $this->twig = $twig; $this->cronSettings = TableRegistry::get('CronSettings'); $this->cronsTable = TableRegistry::get('Cron'); }