public static function install($packs) { foreach ($packs as $fname) { require $fname; } foreach (Dependency::registered() as $dep) { $dep(); } if ($packs = Dependency::newPacks()) { Dependency::reset(); RocketPack::install($packs); } }
<?php //only allow this to run from the command line if (!count($argv)) { exit(1); } require_once 'config.php'; $packs = array('rocketpack.config.php'); RocketPack::install($packs);