/** * @param string $xml file path * @return Ezer_Config */ public static function createFromPath($xml) { $instance = new Ezer_Config(); if (file_exists($xml)) { $instance->loadFile($xml); } return $instance; }