public function generateSymlinks()
{
$command = new SymlinksCommand();
$command->setContainer(\System::getContainer());
$status = $command->run(new ArgvInput(array()), new NullOutput());
// Add a log entry
if ($status > 0) {
$this->log('The symlinks could not be regenerated', __METHOD__, TL_ERROR);
} else {
$this->log('Regenerated the symlinks', __METHOD__, TL_CRON);
}
}