/var/www/flurhymez/vendor/laravel/framework/src/Illuminate/Container
NameSizeModeActions
BoundMethod.php67990644editdlrm
composer.json8940755editdlrm
Container.php406190755editdlrm
ContextualBindingBuilder.php24020644editdlrm
EntryNotFoundException.php1980644editdlrm
LICENSE.md10750644editdlrm
RewindableGenerator.php11450644editdlrm
Util.php16360644editdlrm
Edit: /var/www/flurhymez/vendor/laravel/framework/src/Illuminate/Container/ContextualBindingBuilder.php (2402B)
concrete = $concrete; $this->container = $container; } /** * Define the abstract target that depends on the context. * * @param string $abstract * @return $this */ public function needs($abstract) { $this->needs = $abstract; return $this; } /** * Define the implementation for the contextual binding. * * @param \Closure|string|array $implementation * @return void */ public function give($implementation) { foreach (Util::arrayWrap($this->concrete) as $concrete) { $this->container->addContextualBinding($concrete, $this->needs, $implementation); } } /** * Define tagged services to be used as the implementation for the contextual binding. * * @param string $tag * @return void */ public function giveTagged($tag) { $this->give(function ($container) use ($tag) { $taggedServices = $container->tagged($tag); return is_array($taggedServices) ? $taggedServices : iterator_to_array($taggedServices); }); } /** * Specify the configuration item to bind as a primitive. * * @param string $key * @param ?string $default * @return void */ public function giveConfig($key, $default = null) { $this->give(function ($container) use ($key, $default) { return $container->get('config')->get($key, $default); }); } }