File Manager Lite
Dir:
/home/codewavebd/public_html/vendor/laravel/framework/src/Illuminate/Container/Attributes
Upload
[..]
Auth.php (818 B)
Edit
Rename
Del
Bind.php (1.29 KB)
Edit
Rename
Del
Context.php (1 KB)
Edit
Rename
Del
Give.php (872 B)
Edit
Rename
Del
RouteParameter.php (731 B)
Edit
Rename
Del
Scoped.php (128 B)
Edit
Rename
Del
Tag.php (671 B)
Edit
Rename
Del
Edit: Context.php
<?php namespace Illuminate\Container\Attributes; use Attribute; use Illuminate\Contracts\Container\Container; use Illuminate\Contracts\Container\ContextualAttribute; use Illuminate\Log\Context\Repository; #[Attribute(Attribute::TARGET_PARAMETER)] class Context implements ContextualAttribute { /** * Create a new attribute instance. */ public function __construct(public string $key, public mixed $default = null, public bool $hidden = false) { } /** * Resolve the context value. * * @param self $attribute * @param \Illuminate\Contracts\Container\Container $container * @return mixed */ public static function resolve(self $attribute, Container $container): mixed { $repository = $container->make(Repository::class); return match ($attribute->hidden) { true => $repository->getHidden($attribute->key, $attribute->default), false => $repository->get($attribute->key, $attribute->default), }; } }
Simpan