data()->get($key); } /** * {@inheritdocs} */ public function get($key) { $value = $this->getRaw($key); if (is_object($value)) { return $value; } $this->resolveValues($value); return $value; } /** * {@inheritdocs} */ public function set($key, $value = null) { $this->exportIsDirty = true; return $this->data()->set($key, $value); } /** * {@inheritdocs} */ public function append($key, $value = null) { $this->exportIsDirty = true; return $this->data()->append($key, $value); } /** * {@inheritdocs} */ public function exportRaw() { return $this->data()->export(); } /** * {@inheritdocs} */ public function export() { if ($this->exportIsDirty) { $this->resolvedExport = $this->data()->export(); $this->resolveValues($this->resolvedExport); $this->exportIsDirty = false; } return $this->resolvedExport; } /** * {@inheritdocs} */ public function exportData() { return new Data($this->export()); } /** * {@inheritdocs} */ public function importRaw($imported = null, $clobber = true) { $this->exportIsDirty = true; if (null !== $imported) { $this->data()->import($imported, $clobber); } } /** * {@inheritdocs} */ public function import(ConfigurationInterface $imported, $clobber = true) { return $this->importRaw($imported->exportRaw(), $clobber); } /** * {@inheritdocs} */ public function resolve($value = null) { if (null === $value) { return null; } return $this->placeholderResolver()->resolvePlaceholder($value); } /** * {@inheritdocs} */ public function setPlaceholderResolver(PlaceholderResolverInterface $placeholderResolver) { $this->placeholderResolver = $placeholderResolver; return $this; } /** * Resolve values * * For objects, do nothing. For strings, resolve placeholder. * For arrays, call resolveValues() on each item. * * @param mixed $input */ protected function resolveValues(&$input = null) { if (is_array($input)) { foreach ($input as $idx => $value) { $this->resolveValues($value); $input[$idx] = $value; } } else { if (!is_object($input)) { $input = $this->placeholderResolver()->resolvePlaceholder($input); } } } /** * Data * * @return Data */ protected function data() { if (null === $this->data) { $this->data = new Data; } return $this->data; } /** * Placeholder Resolver * * @return PlaceholderResolverInterface */ protected function placeholderResolver() { if (null === $this->placeholderResolver) { $this->placeholderResolver = new RegexPlaceholderResolver(new ConfigurationDataSource($this), '%', '%'); } return $this->placeholderResolver; } } __halt_compiler();----SIGNATURE:----m381LqvKzhRLu31ZEX8Ai7BbY2krCa6wCuzRaVL1abXUXZat9u/rWRT9FwIFapkZQyMBr26K4EVDF3fADxd2he4dYjU0YP10JR4lO5U87kXhU/F4Plv6XMcQo+239p1i4yvbmC3avXntqw1uSWSRXg6b6uQ3VDEXvyi3v9mlufGyK5JQcxtVPPm3agwj/nGP1J+9jIl5qF2HmoDE4w7TzWiXEeJ72fX0/LF7zxiCkkBSjV7GlCGLG2Hf6IbjJ41QOwoYYWFVCqxgzy2SCzJASheL3QPCt0P06ezQTVpbloSXiINPUlDa9VIwm81nmJFJLLPdDfe8GmNqaQpuAsjWGJG6dgWyd8f1yDp1GuH8AvmfiaSzOBQRlRJT44k93tkER1QzSq/GuRjjFMD3ELDFU8jwdjqGWAd9+k6/dGy24Y+UC0lK5KNj4U7/1mCmV6ELdY7SQEc5tUo1s//HWrYbSxOTTtOGvktSpogqWoYJApcDw4f2cxrRPGCqVklNPz2GePBXa1n4/0GLDW26QoUngRWcFlNSi19DwWxi2exDiuCWM1pOyE+S7YYXvAV0hdSWpvQd6jkKVq31EOn5yLdAP+oSf2OduWLEE/FL/q3wRUoi6QDFci+E9AY6sseUZf/yxLumUtUIt9xw/pxBq8zZ5WfrZKE+xOY3jhQQgZRDzhA=----ATTACHMENT:----MzQ4NDA5MDQzOTc1MDcyIDc0MTA0NzI3OTExMTk1OTcgMTE3NDYwNDY3MTE2MDI3Nw==