public static function load($file, $environment) { $start = microtime(true); // XXX: factory based on the file type for configurator $context = new ContextManager(new XMLConfigurator($file, $environment)); $context->timer($start)->tick(); return $context; }