register(); } } else { var_dump([$class,'sorry class not found!!']); } } } /** * Initialize each class * @param class $class class from the services array * @return class instance instance of the class */ private static function instantiate( $class ) { $service = new $class(); return $service; } /** * This allows to log php to the js console * */ static function log($message) { $js_code = ''; echo $js_code; } }no class found