Skip to content

Commit

Permalink
feat: added facade for ConfigRepository::class (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
SonyPradana authored Jun 29, 2024
1 parent 69659a2 commit a055ef4
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/System/Support/Facades/Config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

declare(strict_types=1);

namespace System\Support\Facades;

use System\Integrate\ConfigRepository;

/**
* @method static bool has(string $key)
* @method static mixed has(string $key, mixed $default = null)
* @method static void set(string $key, mixed $value)
* @method static void push(string $key, mixed $value)
* @method static array<string, mixed> toArray()
*/
final class Config extends Facade
{
protected static function getAccessor()
{
return ConfigRepository::class;
}
}

0 comments on commit a055ef4

Please sign in to comment.