class FastlypurgerServiceProvider in Fastly 8.3
Modifies the Fastly fastly.cache_tags.invalidator service.
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\fastlypurger\FastlypurgerServiceProvider
Expanded class hierarchy of FastlypurgerServiceProvider
File
- modules/
fastlypurger/ src/ FastlypurgerServiceProvider.php, line 11
Namespace
Drupal\fastlypurgerView source
class FastlypurgerServiceProvider extends ServiceProviderBase {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
$definition = $container
->getDefinition('fastly.cache_tags.invalidator');
$definition
->clearTag('cache_tags_invalidator');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FastlypurgerServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceProviderBase:: |
|
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |