فهرست منبع

[HttpFoundation] removed unnecessary method

Kris Wallsmith 14 سال پیش
والد
کامیت
a538344b3b
1فایلهای تغییر یافته به همراه2 افزوده شده و 7 حذف شده
  1. 2 7
      src/Symfony/Component/HttpFoundation/Session.php

+ 2 - 7
src/Symfony/Component/HttpFoundation/Session.php

@@ -36,7 +36,7 @@ class Session implements \Serializable
     {
         $this->storage = $storage;
         $this->defaultLocale = $defaultLocale;
-        $this->attributes = array('_flash' => array(), '_locale' => $this->getDefaultLocale());
+        $this->attributes = array('_flash' => array(), '_locale' => $this->defaultLocale);
         $this->started = false;
     }
 
@@ -58,7 +58,7 @@ class Session implements \Serializable
         }
 
         if (!isset($this->attributes['_locale'])) {
-            $this->attributes['_locale'] = $this->getDefaultLocale();
+            $this->attributes['_locale'] = $this->defaultLocale;
         }
 
         // flag current flash messages to be removed at shutdown
@@ -297,9 +297,4 @@ class Session implements \Serializable
         $this->attributes = array();
         $this->started = false;
     }
-
-    private function getDefaultLocale()
-    {
-        return $this->defaultLocale;
-    }
 }