You are here

public function DomainPathServiceProvider::alter in Domain Path 8

Modifies existing service definitions.

Parameters

ContainerBuilder $container: The ContainerBuilder whose service definitions can be altered.

Overrides ServiceProviderBase::alter

File

src/DomainPathServiceProvider.php, line 17

Class

DomainPathServiceProvider
Overrides the path_alias.manager service. Wrap it with our DomainPathAliasManager.

Namespace

Drupal\domain_path

Code

public function alter(ContainerBuilder $container) {
  $definition = $container
    ->getDefinition('path_alias.manager');
  $definition
    ->setClass('Drupal\\domain_path\\DomainPathAliasManager');
}