PATH:
home
/
fengshp
/
www
/
wp-content
/
plugins
/
spotlight-social-photo-feeds
/
src
/
core
/
Di
<?php namespace RebelCode\Spotlight\Instagram\Di; use Dhii\Services\Factory; use RebelCode\Spotlight\Instagram\Config\ConfigEntry; use RebelCode\Spotlight\Instagram\Config\ConfigSet; /** * A service factory helper that automatically resolves to the value of a config entry. * * @since 0.1 * @see ConfigSet * @see ConfigEntry */ class ConfigService extends Factory { /** * Constructor. * * @since 0.1 * * @param string $configSet The config set from which to read the entry. * @param string $key The key of the entry whose value to resolve to. */ public function __construct(string $configSet, string $key) { parent::__construct([$configSet], function (ConfigSet $configSet) use ($key) { return $configSet->get($key)->getValue(); }); } }
[+]
..
[-] EndPointService.php
[edit]
[-] JsonFileService.php
[edit]
[-] ContainerException.php
[edit]
[-] ArrayMergeExtension.php
[edit]
[-] Container.php
[edit]
[-] ConfigService.php
[edit]
[-] OverrideExtension.php
[edit]
[-] NotFoundException.php
[edit]
[-] ArrayExtension.php
[edit]
[-] DeprefixingContainer.php
[edit]