class MemcacheTestServiceProvider in Memcache API and Integration 8.2
Test service provider.
Hierarchy
- class \Drupal\memcache_test\MemcacheTestServiceProvider implements ServiceModifierInterface
Expanded class hierarchy of MemcacheTestServiceProvider
File
- tests/
modules/ memcache_test/ src/ MemcacheTestServiceProvider.php, line 13
Namespace
Drupal\memcache_testView source
class MemcacheTestServiceProvider implements ServiceModifierInterface {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
$definition = new Definition('Drupal\\Core\\Lock\\LockBackendInterface');
$definition
->setFactory([
new Reference('memcache.lock.factory'),
'get',
]);
$container
->setDefinition('lock', $definition);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MemcacheTestServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceModifierInterface:: |