ServiceDefinitionPluginManager.php in Services 8.4
File
src/ServiceDefinitionPluginManager.php
View source
<?php
namespace Drupal\services;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
class ServiceDefinitionPluginManager extends DefaultPluginManager {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/ServiceDefinition', $namespaces, $module_handler, 'Drupal\\services\\ServiceDefinitionInterface', 'Drupal\\services\\Annotation\\ServiceDefinition');
$this
->alterInfo('service_definition_info');
$this
->setCacheBackend($cache_backend, 'service_definition');
}
}