浏览代码

Removed comment about array_* removal

Xavier De Cock 14 年之前
父节点
当前提交
ab46d0c62b
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      src/Symfony/Component/Routing/Router.php

+ 0 - 2
src/Symfony/Component/Routing/Router.php

@@ -71,8 +71,6 @@ class Router implements RouterInterface
         // check option names and live merge, if errors are encountered Exception will be thrown
         // check option names and live merge, if errors are encountered Exception will be thrown
         $invalid = array();
         $invalid = array();
         $isInvalid = false;
         $isInvalid = false;
-        // This allows to avoid innefficients array_diff, array_keys, and so on, we only walks one the overriden options
-        // With array_keys, array_diff and array_merge there is 3 full walk of the $this->options array and 2 of $options.
         foreach ($options as $key => $value) {
         foreach ($options as $key => $value) {
             if (array_key_exists($key, $this->options)) {
             if (array_key_exists($key, $this->options)) {
                 $this->options[$key] = $value;
                 $this->options[$key] = $value;