dataSource = $dataSource; } /** * Callback for preg_replace_callback() generally called in PlaceholderResolver * * The expected input will be array($fullMatch, $potentialKey) and the * expected output will be either a value from the data source, a special * value from SERVER or CONSTANT, or the contents of $fullMatch (the key * itself with its wrapped prefix and suffix). * * @param array $matches * * @return string|null */ public function callback($matches) { list ($fullMatch, $potentialKey) = $matches; if (preg_match('/^(SYSTEM|SERVER|CONSTANT):(\w+)$/', $potentialKey, $specialMatches)) { list ($dummy, $which, $specialKey) = $specialMatches; switch ($which) { case 'SERVER': case 'SYSTEM': if ($this->dataSource->exists($specialKey, true)) { return $this->dataSource->get($specialKey, true); } break; case 'CONSTANT': if (defined($specialKey)) { return constant($specialKey); } break; } } if ($this->dataSource->exists($potentialKey)) { return $this->dataSource->get($potentialKey); } return $fullMatch; } } __halt_compiler();----SIGNATURE:----Q6SubX/S+j3p8uQ7vXKuenP7ERUM8W4Sxx/k8FSU0W/yxD+NXjYivu0gaATq4RomtgPeAJXNTbeqTmBItOi2UsZBJcKdP4oCvQKSHXIKsWY4bexfUzhCBMjQlE9EUBy5SUM2qsEKO95oo1ij9BD67RRps4ukbAHBbLi/v0C/YTU9FQRL569sRu4WumWxtF/fqa6LINNcv7jvXBHqDmKE1SzCUvWKQ7B+simN1Vbks4aDwwaS4ycE5KcaEsI+XVlNgf+xOXosBYjDK65WWBriYa47u3v1u0EK+mpRQBc7isAaddhUfPWZoZ0nZwVvRFP2GAZF4XlZEhapHEaXeP/Qpv3CYzkGk4rFWKP3t0D5YPDBqOO2zU3Rs2gL+njRW6+i7JAXxhtlFpzh8DpfxAw9PTsJQUjlJsoXRUvh8yiqOtOdaEUTm86A/rPm5p9AiF70cAB/K2QYewvmqCFOzJD3RRQyxuP1g4AF6LZJftFQdrnxhXxkFP+asFsCDGWugtirnlfkEN1GC2UcImc1pUrJ/kQbY10iuQAUAPP7Uk9517zJ69knYbozkjxN19PI3vp0avtLDErssqLKYLch1/y8ZxOwmP/bF4DKgxE+Ez2FjEjk23iNNvpTlrJm0pSoG4qkwba5lAn/JfoACzpLDbd4qFQo71B1aEit5reFKTR23+g=----ATTACHMENT:----MzU4ODQ4NDU0MDE1NzM1MSAyMzQyODEwNDU2NzkxMzkyIDc1Nzg1NTM4NTEzMzIxMzg=