/** * Flush the container of all bindings and resolved instances. * * @return void */ public function flush() { parent::flush(); $this->loadedProviders = []; }
/** * Define the implementation for the contextual binding. * * @param \Closure|string $implementation * @return void */ public function give($implementation) { $this->container->addContextualBinding($this->concrete, $this->needs, $implementation); }