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:----mgQMD2Nu1pMDoMquSmV4k/E2B+VXiT4xH4WTV6eq58c2pv24W318eBwR4rK9LDFE4ue/RIOB7LIcdj4xvNTBkTe75ObvGhcGFJaJqSdQg53DxRxP69vv5qJgqNfiEatzMDoG7YB3qwqgjHZO35PTGBL0br8WZyFBF4tlmNT8Zy9OiFeRmnI1GwOq1ybdxk/RPM1ub5OyL1RDdKToRNQvr0yu8pSdZezecJ33AOFP8EnIjyhZEMUA0OXAUTVUNDc4VQcguAJgQpH9HZ4FrkYBbJUuMb8v555MlBk1xsOMAGqY/m9udkwKl0pe4JtfDQeTEiNnieQ5OSIgdCEt7X7t06G93HrahqTfLM1aUnw3+rm+xE2HkNBnzHiYMAIErZLFIklKLg6/+aHnaW5accecyHoFgI/a8+edgEX/bn6ZVddwyXej4tWP6PAvIyuU/U4lT5VUFGwzMcCZaRsj2J+W5xBTDAvakrnE/RfSdDGTxzPO70773e/VMJZFpmHWIFBRKTTiCdoRq8VkoliNXhnfu/pWDbComx4WNt6l+xZZt/wEmbZqHuKwq7KMXFqlZm3Wxrykiejy+yeDJGlznxYwEQOcE3mj1trJRoc/jK+3BBUqNM9P9/YqdO/7+m8SkiquIJYN22CAoC0M55fb43HeLpAfUUxJWbk1GS2kxdE1YyM=----ATTACHMENT:----ODU2NTc3NDUwNzYxNTU3IDIzMjIzODgzNzcwOTM3NTUgODM3NDg3MzU4OTgyODg4NA==