You are here

class PurlServiceProvider in Persistent URL 8

Hierarchy

Expanded class hierarchy of PurlServiceProvider

File

src/PurlServiceProvider.php, line 16

Namespace

Drupal\purl
View source
class PurlServiceProvider extends ServiceProviderBase {
  public function alter(ContainerBuilder $container) {
    $urlGeneratorDefinition = $container
      ->getDefinition('url_generator');
    $urlGeneratorDefinition
      ->replaceArgument(0, new Reference('purl.url_generator'));
  }

}

Members

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