Exemplo n.º 1
0
	'theme' => [
		'description' => 'Reinstall only a requested theme.',
		'value' => true,
		'shorthand' => ['t'],
	    'assign' => &$onlyTheme,
	],
]);

$arguments->usageHeader = 'This utility will perform a reinstallation of all assets and models on the site';

$arguments->processArguments();

\Core::LoadComponents();
try {
	DMI::GetSystemDMI();
	ConfigHandler::_DBReadyHook();
}
	// This catch statement should be hit anytime the database is not available,
	// core table doesn't exist, or the like.
catch (Exception $e) {
	echo $e->getMessage();
	die();
}

$allpages = [];
$changes = [];

// And perform an actual reinstall
foreach(\Core::GetComponents() as $c){
	/** @var Component_2_1 $c */