You are here

class FastlypurgerServiceProvider in Fastly 8.3

Modifies the Fastly fastly.cache_tags.invalidator service.

Hierarchy

Expanded class hierarchy of FastlypurgerServiceProvider

File

modules/fastlypurger/src/FastlypurgerServiceProvider.php, line 11

Namespace

Drupal\fastlypurger
View source
class FastlypurgerServiceProvider extends ServiceProviderBase {

  /**
   * {@inheritdoc}
   */
  public function alter(ContainerBuilder $container) {
    $definition = $container
      ->getDefinition('fastly.cache_tags.invalidator');
    $definition
      ->clearTag('cache_tags_invalidator');
  }

}

Members

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