public function loadComponent($config, $providers, $return = null)
    {
        $this->configure($config);

        foreach ((array) $providers as $provider) {
            $this->register($provider);
        }

        return $this->make($return ?: $config);
    }
public function loadComponent($config, $providers, $return = null)
    {
        $this->configure($config);

        foreach ((array) $providers as $provider) {
            $this->register($provider);
        }

        return $this->make($return ?: $config);
    }
public function loadComponent ( $ config , $ providers , $ return = null ) { $ this -> configure ( $ config ) ; foreach ( ( array ) $ providers as $ provider ) { $ this -> register ( $ provider ) ; } return $ this -> make ( $ return ? : $ config ) ; }
Configure and load the given component and provider.

@param  string  $config
@param  array|string  $providers
@param  string|null  $return
@return mixed
Configure and load the given component and provider .