浏览代码

Fix usage of deprecated method Yaml::load

Lukas Botsch 14 年之前
父节点
当前提交
58112c8278
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/Gedmo/Sortable/Mapping/Driver/Yaml.php

+ 1 - 1
lib/Gedmo/Sortable/Mapping/Driver/Yaml.php

@@ -81,7 +81,7 @@ class Yaml extends File implements Driver
      */
     protected function _loadMappingFile($file)
     {
-        return \Symfony\Component\Yaml\Yaml::load($file);
+        return \Symfony\Component\Yaml\Yaml::parse($file);
     }
 
     /**