Version 1
[yaffs-website] / vendor / dflydev / dot-access-configuration / src / Dflydev / DotAccessConfiguration / PlaceholderResolverFactory.php
diff --git a/vendor/dflydev/dot-access-configuration/src/Dflydev/DotAccessConfiguration/PlaceholderResolverFactory.php b/vendor/dflydev/dot-access-configuration/src/Dflydev/DotAccessConfiguration/PlaceholderResolverFactory.php
new file mode 100644 (file)
index 0000000..987fc01
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+
+/*
+ * This file is a part of dflydev/dot-access-configuration.
+ *
+ * (c) Dragonfly Development Inc.
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Dflydev\DotAccessConfiguration;
+
+use Dflydev\PlaceholderResolver\DataSource\DataSourceInterface;
+use Dflydev\PlaceholderResolver\RegexPlaceholderResolver;
+
+class PlaceholderResolverFactory extends AbstractPlaceholderResolverFactory
+{
+    /**
+     * {@inheritdocs}
+     */
+    protected function createInternal(ConfigurationInterface $configuration, DataSourceInterface $dataSource)
+    {
+        return new RegexPlaceholderResolver($dataSource, '%', '%');
+    }
+}