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:----aCK4trwi2ajTPk+uZtlNiirHxbJXKlNYA3KsTfW7EVtGaByrVvMZbrGNt0Y1FlXf6ZguCB1gixP4AqQWYeyvKsklc+QVobBSrYqH4ZaMZ8CYVD+kysfwz3DpVb69EiSQy3HK6MOR7302pXE4j7XqNSNLsuxH1uzHcd6HGsMX1fLcgMo0KqX8VwBE35J9CRm3gFkuPCjoEhwQHeoO3TRoenhps696ywzdcqIXurP5eUPU6nw+0nghkSrWOBZOnWo8hwMMSwAc4EH5AxF6mJMlulk/wx2kqMU3DyU0SRjhOdrdizmsidcGypuWmAWPrGrF6SsSlpRoGa0cwI8zpi8mWMmg4VgWyzClWi5/pbzGf5nqsZ55tmqZ7jUhjzLiT6uCA2i4yf4WlVq6/snQjnoTFjPyCkDOZiGJPRHdaCZERWCiKfZG54EbVFU3+/fGUhxazLP4a9skbKZUz/WoV+7Vvh6MzXEtvI0l+9lW0sPjNAtWjx+U7q/NYUibMZZBvMNVKFP7hsv7kkcbAk8IZRE5z30KsYPkhpPn4q6xP84JnqiPbtXXK28R4J+dTHs2vYGR3wYhodbgPzcWXPBBRkuXXucIxCBqWp4YALkeUoNenVsfBcDQW+OfO008eH9oNJ0z4ywQGScK4tOyehCzbNGucmqUzYOHf0XpFXsrOfiX7Zw=----ATTACHMENT:----OTE0MzAzODI0MDk0NTgwMyA1OTE2NTUxNjY3Mjc3MTc4IDE4OTExNzYzMjU5NTYwMQ==