code: public function generateSymlinks()
  	{
  		$container = System::getContainer();
  
  		$command = $container->get('contao.command.symlinks');
  		$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);
  		}
  	}
docs: Generate the symlinks in the web/ folder