18 lines
362 B
PHP
18 lines
362 B
PHP
|
|
<?php
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace Phred\Support;
|
||
|
|
|
||
|
|
use Phred\Support\Contracts\ConfigInterface;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Default adapter that delegates to the legacy static Config facade.
|
||
|
|
*/
|
||
|
|
final class DefaultConfig implements ConfigInterface
|
||
|
|
{
|
||
|
|
public function get(string $key, mixed $default = null): mixed
|
||
|
|
{
|
||
|
|
return Config::get($key, $default);
|
||
|
|
}
|
||
|
|
}
|