library/RegisterResolver.php
public function registerObject($service, $object)
    {
		if (!is_object($object)) {
			throw new ResolutionException("Service '$service' cannot be register as it's value is invalid");
		}

        $this->services[$service] = function () use ($object) { return $object; };
    }
public function registerObject($service, $object)
    {
		if (!is_object($object)) {
			throw new ResolutionException("Service '$service' cannot be register as it's value is invalid");
		}

        $this->services[$service] = function () use ($object) { return $object; };
    }
public function registerObject ( $ service , $ object ) { if ( ! is_object ( $ object ) ) { throw new ResolutionException ( "Service '$service' cannot be register as it's value is invalid" ) ; } $ this -> services [ $ service ] = function ( ) use ( $ object ) { return $ object ; } ; }
Registers an object with the container.

@param string $service
@param object $object
@see register
Registers an object with the container .