فهرست منبع

Changed load_resource_bundle() to use ResourceBundle::create() method instead of constructor

Derek ROTH 14 سال پیش
والد
کامیت
9013e3639b
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/Symfony/Component/Locale/Resources/data/update-data.php

+ 1 - 1
src/Symfony/Component/Locale/Resources/data/update-data.php

@@ -94,7 +94,7 @@ function genrb_file($target, $source, $locale)
 
 function load_resource_bundle($locale, $directory)
 {
-    $bundle = new \ResourceBundle($locale, $directory);
+    $bundle = \ResourceBundle::create($locale, $directory);
 
     if (null === $bundle) {
         bailout('The resource bundle for locale '.$locale.' could not be loaded from directory '.$directory);