protected function loadComponent($bindings, $name)
    {
        $aliases = array_values($bindings);
        $abstracts = array_keys($bindings);
        
        foreach ($abstracts as $index => $abstract) {
            $this->app->singleton(
                $abstract,
                $this->{"load{$name}Component"}()
            );
            
            $this->app->alias(
                $abstract,
                $aliases[$index]
            );
        }
    }
protected function loadComponent($bindings, $name)
    {
        $aliases = array_values($bindings);
        $abstracts = array_keys($bindings);
        
        foreach ($abstracts as $index => $abstract) {
            $this->app->singleton(
                $abstract,
                $this->{"load{$name}Component"}()
            );
            
            $this->app->alias(
                $abstract,
                $aliases[$index]
            );
        }
    }
protected function loadComponent ( $ bindings , $ name ) { $ aliases = array_values ( $ bindings ) ; $ abstracts = array_keys ( $ bindings ) ; foreach ( $ abstracts as $ index => $ abstract ) { $ this -> app -> singleton ( $ abstract , $ this -> { "load{$name}Component" } ( ) ) ; $ this -> app -> alias ( $ abstract , $ aliases [ $ index ] ) ; } }
Load component by given bindings an name resolver.

@param array  $bindings
@param string $name
Load component by given bindings an name resolver .