Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
<?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);