Config.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. /**
  4. * @method static bool has(string $key)
  5. * @method static mixed get(array|string $key, mixed $default = null)
  6. * @method static array getMany(array $keys)
  7. * @method static string string(string $key, \Closure|string|null $default = null)
  8. * @method static int integer(string $key, \Closure|int|null $default = null)
  9. * @method static float float(string $key, \Closure|float|null $default = null)
  10. * @method static bool boolean(string $key, \Closure|bool|null $default = null)
  11. * @method static array array(string $key, \Closure|array|null $default = null)
  12. * @method static void set(array|string $key, mixed $value = null)
  13. * @method static void prepend(string $key, mixed $value)
  14. * @method static void push(string $key, mixed $value)
  15. * @method static array all()
  16. * @method static void macro(string $name, object|callable $macro, object|callable $macro = null)
  17. * @method static void mixin(object $mixin, bool $replace = true)
  18. * @method static bool hasMacro(string $name)
  19. * @method static void flushMacros()
  20. *
  21. * @see \Illuminate\Config\Repository
  22. */
  23. class Config extends Facade
  24. {
  25. /**
  26. * Get the registered name of the component.
  27. *
  28. * @return string
  29. */
  30. protected static function getFacadeAccessor()
  31. {
  32. return 'config';
  33. }
  34. }