You've already forked php-flasher
mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-04-05 12:32:55 +01:00
25 lines
508 B
PHP
25 lines
508 B
PHP
<?php
|
|
|
|
namespace Flasher\Laravel\Config;
|
|
|
|
use Illuminate\Config\Repository;
|
|
use Flasher\Prime\Config\ConfigInterface;
|
|
|
|
final class Config implements ConfigInterface
|
|
{
|
|
private $config;
|
|
|
|
private $separator;
|
|
|
|
public function __construct(Repository $config, $separator = '.')
|
|
{
|
|
$this->config = $config;
|
|
$this->separator = $separator;
|
|
}
|
|
|
|
public function get($key, $default = null)
|
|
{
|
|
return $this->config->get('flasher'.$this->separator.$key, $default);
|
|
}
|
|
}
|