Phred/src/Support/DefaultConfig.php

18 lines
362 B
PHP
Raw Normal View History

<?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);
}
}