You are here

class DomainPathServiceProvider in Domain Path 8

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

Hierarchy

Expanded class hierarchy of DomainPathServiceProvider

File

src/DomainPathServiceProvider.php, line 13

Namespace

Drupal\domain_path
View source
class DomainPathServiceProvider extends ServiceProviderBase implements ServiceModifierInterface {

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

}

Members

Namesort descending Modifiers Type Description Overrides
DomainPathServiceProvider::alter public function Modifies existing service definitions. Overrides ServiceProviderBase::alter
ServiceProviderBase::register public function Registers services to the container. Overrides ServiceProviderInterface::register 1