src/Compiler.php
public function register(DefinitionProviderInterface $definitionProvider)
    {
        foreach ($definitionProvider->getDefinitions() as $identifier => $definition) {
            $this->addDefinition($identifier, $definition);
        }
    }
public function register(DefinitionProviderInterface $definitionProvider)
    {
        foreach ($definitionProvider->getDefinitions() as $identifier => $definition) {
            $this->addDefinition($identifier, $definition);
        }
    }
Registers a new definition provider.

@param DefinitionProviderInterface $definitionProvider