code: public function register(AbstractProvider $provider)
      {
          $this->resolver->attach($provider->getResolver());
          $this->errors = array_replace($provider->getErrors(), $this->errors);
      }
docs: Register a resource provider with this API.
  
  @param AbstractProvider $provider
  @return void