public function registerArray(array $instances)
    {
        foreach ($instances as $name => $instance) {
            $this->register($name, $instance);
        }

        return $this;
    }
public function registerArray(array $instances)
    {
        foreach ($instances as $name => $instance) {
            $this->register($name, $instance);
        }

        return $this;
    }
public function registerArray ( array $ instances ) { foreach ( $ instances as $ name => $ instance ) { $ this -> register ( $ name , $ instance ) ; } return $ this ; }
Registers a collection of service instances

@param array $instances
@return \Krystal\InstanceManager\ServiceLocator
Registers a collection of service instances