src/Foundation/ServiceProvider/Provider.php
public function register(array $concreteConfig, $uniqueId)
    {
        $concreteConfig = $this->parseWithDefaultStructure($concreteConfig);

        if (!Validator::okayToRegister($uniqueId, $concreteConfig, $this->defaultStructure, __CLASS__)) {
            return false;
        }

        $concrete = $this->getConcrete($concreteConfig, $uniqueId);

        if (true === $this->skipQueue) {
            return $this->registerConcrete($concrete, $uniqueId);
        }

        return $this->queued[$uniqueId] = $concrete;
    }
public function register(array $concreteConfig, $uniqueId)
    {
        $concreteConfig = $this->parseWithDefaultStructure($concreteConfig);

        if (!Validator::okayToRegister($uniqueId, $concreteConfig, $this->defaultStructure, __CLASS__)) {
            return false;
        }

        $concrete = $this->getConcrete($concreteConfig, $uniqueId);

        if (true === $this->skipQueue) {
            return $this->registerConcrete($concrete, $uniqueId);
        }

        return $this->queued[$uniqueId] = $concrete;
    }
public function register ( array $ concreteConfig , $ uniqueId ) { $ concreteConfig = $ this -> parseWithDefaultStructure ( $ concreteConfig ) ; if ( ! Validator :: okayToRegister ( $ uniqueId , $ concreteConfig , $ this -> defaultStructure , __CLASS__ ) ) { return false ; } $ concrete = $ this -> getConcrete ( $ concreteConfig , $ uniqueId ) ; if ( true === $ this -> skipQueue ) { return $ this -> registerConcrete ( $ concrete , $ uniqueId ) ; } return $ this -> queued [ $ uniqueId ] = $ concrete ; }
Register a concrete into the container.

@since 3.0.0

@param array $concreteConfig Concrete's runtime configuration parameters.
@param string $uniqueId Container's unique key ID for this instance.

@returns mixed
Register a concrete into the container .