code: public function register(DefinitionProviderInterface $definitionProvider)
      {
          foreach ($definitionProvider->getDefinitions() as $identifier => $definition) {
              $this->addDefinition($identifier, $definition);
          }
      }
docs: Registers a new definition provider.
  
  @param DefinitionProviderInterface $definitionProvider