/** * Singleton method for asset class * * @static * @return Kohana_Asset */ public static function instance() { if (self::$_instance === NULL) { $config = Kohana::$config->load('asset')->as_array(); self::$_instance = new Asset($config); } return self::$_instance; }