5 * Contains \Drupal\linkit\MatcherManager.
8 namespace Drupal\linkit;
10 use Drupal\Core\Cache\CacheBackendInterface;
11 use Drupal\Core\Extension\ModuleHandlerInterface;
12 use Drupal\Core\Plugin\DefaultPluginManager;
17 class MatcherManager extends DefaultPluginManager {
22 public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
23 parent::__construct('Plugin/Linkit/Matcher', $namespaces, $module_handler, 'Drupal\linkit\MatcherInterface', 'Drupal\linkit\Annotation\Matcher');
25 $this->alterInfo('linkit_matcher');
26 $this->setCacheBackend($cache_backend, 'linkit_matchers');