Example #1
0
 /**
  * Apply the registered Laravel service container contextual bindings.
  */
 private function applyContextualBindings()
 {
     foreach ($this->contextualBindings as $concrete => $bindings) {
         foreach ($bindings as $abstract => $implementation) {
             $this->app->addContextualBinding($concrete, $abstract, $implementation);
         }
     }
 }
Example #2
0
 /**
  * Add a contextual binding to the container.
  *
  * @param string $concrete
  * @param string $abstract
  * @param \Closure|string $implementation
  * @return void 
  * @static 
  */
 public static function addContextualBinding($concrete, $abstract, $implementation)
 {
     //Method inherited from \Illuminate\Container\Container
     \Illuminate\Foundation\Application::addContextualBinding($concrete, $abstract, $implementation);
 }