blitz-php /
framework
| 1 | <?php |
||
| 2 | |||
| 3 | /** |
||
| 4 | * This file is part of Blitz PHP framework. |
||
| 5 | * |
||
| 6 | * (c) 2022 Dimitri Sitchet Tomkeu <[email protected]> |
||
| 7 | * |
||
| 8 | * For the full copyright and license information, please view |
||
| 9 | * the LICENSE file that was distributed with this source code. |
||
| 10 | */ |
||
| 11 | |||
| 12 | namespace BlitzPHP\Facades; |
||
| 13 | |||
| 14 | use Nette\Schema\Schema; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @method static bool exists(string $key) Détermine si une clé de configuration existe. |
||
| 18 | * @method static mixed get(string $key, mixed $default = null) Renvoie une configuration de l'application. |
||
| 19 | * @method static bool has(string $key) Détermine s'il y'a une clé de configuration. |
||
| 20 | * @method static bool missing(string $key) Détermine s'il manque une clé de configuration. |
||
| 21 | * @method static $this ghost((array | string) $key, ?Schema $schema = null) Rend disponible un groupe de configuration qui n'existe pas (pas de fichier de configuration). Ceci est notament utilse pour definir des configurations à la volée |
||
| 22 | * @method static void reset(null|array|string $keys = null) Reinitialise une configuration en fonction des donnees initiales issues des fichiers de configurations. |
||
| 23 | * @method static void set(string $key, mixed $value) Définit une configuration de l'application. |
||
| 24 | * |
||
| 25 | * @see \BlitzPHP\Config\Config |
||
| 26 | */ |
||
|
0 ignored issues
–
show
Documentation
Bug
introduced
by
Loading history...
|
|||
| 27 | final class Config extends Facade |
||
| 28 | { |
||
| 29 | protected static function accessor(): object |
||
| 30 | { |
||
| 31 | 2 | return service('config'); |
|
| 32 | } |
||
| 33 | } |
||
| 34 |