@@ 142-146 (lines=5) @@ | ||
139 | if (isset($v[0]) && is_object($v[0])) { |
|
140 | if (isset($v[1]) && is_string($v[1])) { |
|
141 | $id = ++$this->counter; |
|
142 | if ($this->persistentMode) { |
|
143 | $this->persistentCallbacks[$id] = $v; |
|
144 | } else { |
|
145 | $this->callbacks[$id] = $v; |
|
146 | } |
|
147 | $v = ''; |
|
148 | $list[$id] = $path; |
|
149 | $list[$id][] = $k; |
|
@@ 159-163 (lines=5) @@ | ||
156 | array_pop($path); |
|
157 | } elseif ($v instanceof \Closure) { |
|
158 | $id = ++$this->counter; |
|
159 | if ($this->persistentMode) { |
|
160 | $this->persistentCallbacks[$id] = $v; |
|
161 | } else { |
|
162 | $this->callbacks[$id] = $v; |
|
163 | } |
|
164 | $v = ''; |
|
165 | $list[$id] = $path; |
|
166 | $list[$id][] = $k; |