From 3be4d2f061fcc8830ad525f8e13edc49cf560e29 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 10 Jun 2024 22:22:01 +0100 Subject: [PATCH] Remove `OpdaviesTalksServiceProvider` It's not used as the tests pass and functionality still works without it. --- .../src/OpdaviesTalksServiceProvider.php | 39 ------------------- 1 file changed, 39 deletions(-) delete mode 100644 web/modules/custom/talks/src/OpdaviesTalksServiceProvider.php diff --git a/web/modules/custom/talks/src/OpdaviesTalksServiceProvider.php b/web/modules/custom/talks/src/OpdaviesTalksServiceProvider.php deleted file mode 100644 index 5cee195..0000000 --- a/web/modules/custom/talks/src/OpdaviesTalksServiceProvider.php +++ /dev/null @@ -1,39 +0,0 @@ -in(__DIR__ . '/' . $directory) - ->files() - ->name('*.php'); - - foreach ($files as $file) { - $class = 'Drupal\opdavies_talks\\' . $directory . '\\' . - str_replace('/', '\\', substr($file->getRelativePathname(), 0, -4)); - - if ($container->hasDefinition($class)) { - continue; - } - - $definition = new Definition($class); - $definition->setAutowired(TRUE); - if ($directory == 'EventSubscriber') { - $definition->addTag('event_subscriber'); - } - $container->setDefinition($class, $definition); - } - } - } - -}