X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrupal%2Fdrupal-extension%2Fsrc%2FDrupal%2FDrupalExtension%2FCompiler%2FDriverPass.php;fp=vendor%2Fdrupal%2Fdrupal-extension%2Fsrc%2FDrupal%2FDrupalExtension%2FCompiler%2FDriverPass.php;h=0000000000000000000000000000000000000000;hp=6fc862a5235d9cfc86b2b71b0e672f654d627696;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/drupal/drupal-extension/src/Drupal/DrupalExtension/Compiler/DriverPass.php b/vendor/drupal/drupal-extension/src/Drupal/DrupalExtension/Compiler/DriverPass.php deleted file mode 100644 index 6fc862a52..000000000 --- a/vendor/drupal/drupal-extension/src/Drupal/DrupalExtension/Compiler/DriverPass.php +++ /dev/null @@ -1,53 +0,0 @@ -hasDefinition('drupal.drupal')) { - return; - } - - $drupalDefinition = $container->getDefinition('drupal.drupal'); - foreach ($container->findTaggedServiceIds('drupal.driver') as $id => $attributes) { - foreach ($attributes as $attribute) { - if (isset($attribute['alias']) && $name = $attribute['alias']) { - $drupalDefinition->addMethodCall( - 'registerDriver', array($name, new Reference($id)) - ); - } - } - - // If this is Drupal Driver, then a core controller needs to be - // instantiated as well. - if ('drupal.driver.drupal' === $id) { - $drupalDriverDefinition = $container->getDefinition($id); - $availableCores = array(); - foreach ($container->findTaggedServiceIds('drupal.core') as $coreId => $coreAttributes) { - foreach ($coreAttributes as $attribute) { - if (isset($attribute['alias']) && $name = $attribute['alias']) { - $availableCores[$name] = $container->getDefinition($coreId); - } - } - } - $drupalDriverDefinition->addMethodCall( - 'setCore', array($availableCores) - ); - } - } - - $drupalDefinition->addMethodCall( - 'setDefaultDriverName', array($container->getParameter('drupal.drupal.default_driver')) - ); - } -}