You are here

class MemcacheTestServiceProvider in Memcache API and Integration 8.2

Test service provider.

Hierarchy

Expanded class hierarchy of MemcacheTestServiceProvider

File

tests/modules/memcache_test/src/MemcacheTestServiceProvider.php, line 13

Namespace

Drupal\memcache_test
View 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

Namesort descending Modifiers Type Description Overrides
MemcacheTestServiceProvider::alter public function Modifies existing service definitions. Overrides ServiceModifierInterface::alter