987fc015f08248559fba77132b132d7ccadebd6c
[yaffs-website] / vendor / dflydev / dot-access-configuration / src / Dflydev / DotAccessConfiguration / PlaceholderResolverFactory.php
1 <?php
2
3 /*
4  * This file is a part of dflydev/dot-access-configuration.
5  *
6  * (c) Dragonfly Development Inc.
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Dflydev\DotAccessConfiguration;
13
14 use Dflydev\PlaceholderResolver\DataSource\DataSourceInterface;
15 use Dflydev\PlaceholderResolver\RegexPlaceholderResolver;
16
17 class PlaceholderResolverFactory extends AbstractPlaceholderResolverFactory
18 {
19     /**
20      * {@inheritdocs}
21      */
22     protected function createInternal(ConfigurationInterface $configuration, DataSourceInterface $dataSource)
23     {
24         return new RegexPlaceholderResolver($dataSource, '%', '%');
25     }
26 }