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:----cxYsx5cTE/MjMzwcrUpvHYOWq8l/uNAG8Vqti3wVv1gjml3rgmDWPP01KjKG9M1Coi5wtK3EcNaRti1Jj3As+fkzcTUhFxPjZZFvRoGFFwIoclHq3x2Hn4nzpkeU4XEYxPyfSKRj3pRJ7tIYOzoIks26xUPO5ggrAbjrFSLVtYXm2K9qXNcDlqpMMp7phwKhAf5ZeZKWgBWvY5A34FIxFT0NuFBsF2qivQqOVzr+sk1zxRTYWpCtvMaCUkAh4K99MygdA7sRyiQMkk4hmbrOMBid6CRrodkdJycjipW/T1ipYjIbCl7+GRVPo6ME0+dVLn+MKFRWzAIRfYUQ+47WcZh0WDiWq70oXgXDeMEK4oxERtkuXc/szoEmzx/bZco9Gs9l8eXB+9cA9iMw0Ysx8dZyqiUCDtxI4cLeIMMMktW8dDq9IUF+gR9lZmo+FUWTCuS6qFXANRjs9UGuYbXLfzeGiUvOJqcnVJO9Rnd91SDFOdWBlO/D72FgoXgY2+hugqe/UIHb08WicZsXzyeaNG6wy8SRhjk+Z+ZCuyIo64P9lA+s9aD0GAZDgX+KVyJVPp/vRSYPTT7yJ4Ny9P8yCK29wZH8N50WpW+IK2RRVE9DBBP0BEwRSgIa2vim/BNmlnuXOZlfnzGs8RI+XHkAYp5EvwUvdIehzNNkp4kXhq0=----ATTACHMENT:----NjY1MDY3ODg1NDYzMDc2NyA2MTQ0MDI1Mjc4NzcxMzAgMzA2MjE5OTA1MjExOTQ5Nw==