/** @var Enlight_Components_Cron_Manager $manager */
$manager =
$this->container->
get('cron'
);
$rows =
[];
foreach ($manager->
getAllJobs() as $job) { $rows[] =
[ $job->
getName(),
$job->
getAction(),
$job->
getActive() ? 'Yes' : 'No',
$job->
getInterval(),
$job->
getNext(),
$job->
getEnd(),
];
} $table =
new Table($output);
$table->
setHeaders(['Name', 'Action', 'Active', 'Interval', 'Next run', 'Last run'
]) ->
setRows($rows);
$table->
render();
return 0;
}}