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:----DtF82rB1H5X18+vWLi57l/qUxxLmJLDCr0i194jcxEGJZmbY9RMKb2zulpUyMjfbSwKxcDlMtq3yhae0pAUZzxmJVVM3MDNT6nXO8ihaHmZYy3FxayhzcHbcqOpSHybV4J5lkW/LAwi1jg595B8F0yCNSzR5z3q99Wr8fctl2lslLhFdylw5ITr5zDca2ydVxoPIfgdT6qP2n4Vp2eiLZCW9l07V9awiv0MtVcCXtXlfjTlEVKFBfWkAqrEL11it55RXEifdoyWr/i/AdE5wzZ3DPw/Gye27G1NwsgY9884vqdTnKJHX0XGZM0fQakkfthCsr1Sg2zYN9uu7wEyDe+uYrbPSf2rN3ie6GAiWyAbzJ5NSfv84zk0kvFFgt95OBO5WDSNR9e/BkVxwXznh2e1QLyAV4DCMswtPlrkuMHJE8DoneGSI27eSc/iI9gnY2J6u/X9EZSXJ43ar/BVQj3dhc9HSvssb2asKbYkUDhlVQd3bW6QirIPfWphpgmWP+mYTKz7R/MNMGRlBE0z5jm1dkne4JfkN6pQj3qoAI+xEtapzjnZVRXYgC/zfHdgHTNO3qChRRK3QtNrbb5ts4qROLsU+aXqp2wCiO0LbyBl+xNyA1XUK28DxOtXDdrSqoI7FcP4AgOs2mKqwoZSNf5mcS3UHvVcEth6Rk9ZFeUA=----ATTACHMENT:----MTc2MzAxODAwMzUyODUyMCA4Mjc5MjY5MDY2MzU5MDMxIDU2MDM4NTcyMDE3NDYzNzU=