浏览代码

[HttpKernel] fixed typos

Fabien Potencier 15 年之前
父节点
当前提交
aa98c184ac
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/Symfony/Components/HttpKernel/HeaderBag.php

+ 3 - 3
src/Symfony/Components/HttpKernel/HeaderBag.php

@@ -209,15 +209,15 @@ class HeaderBag
             }
         }
 
-        if (null !== $this->expires) {
+        if (null !== $expires) {
             $cookie .= '; expires='.substr(\DateTime::createFromFormat('U', $expires, new \DateTimeZone('UTC'))->format('D, d-M-Y H:i:s T'), 0, -5);
         }
 
-        if ('/' !== $this->path) {
+        if ('/' !== $path) {
             $cookie .= '; path='.$path;
         }
 
-        if ('' !== $this->domain) {
+        if ('' !== $domain) {
             $cookie .= '; domain='.$domain;
         }