Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / drush / drush / src / Runtime / DependencyInjection.php
index e3286481d87fcef6fed59b47afbe06b517f00b81..ba25e99effef795828e7c123fff6894b178c0668 100644 (file)
@@ -11,7 +11,7 @@ use Symfony\Component\Console\Application;
 use Consolidation\Config\ConfigInterface;
 use Composer\Autoload\ClassLoader;
 use League\Container\ContainerInterface;
-use Drush\SiteAlias\SiteAliasManager;
+use Consolidation\SiteAlias\SiteAliasManager;
 
 /**
  * Prepare our Dependency Injection Container
@@ -104,7 +104,7 @@ class DependencyInjection
         // Add inflectors. @see \Drush\Boot\BaseBoot::inflect
         $container->inflector(\Drush\Boot\AutoloaderAwareInterface::class)
             ->invokeMethod('setAutoloader', ['loader']);
-        $container->inflector(\Drush\SiteAlias\SiteAliasManagerAwareInterface::class)
+        $container->inflector(\Consolidation\SiteAlias\SiteAliasManagerAwareInterface::class)
             ->invokeMethod('setSiteAliasManager', ['site.alias.manager']);
     }
 
@@ -126,6 +126,9 @@ class DependencyInjection
         $factory = $container->get('commandFactory');
         $factory->setIncludeAllPublicMethods(false);
         $factory->setDataStore($commandCacheDataStore);
+
+        $commandProcessor = $container->get('commandProcessor');
+        $commandProcessor->setPassExceptions(true);
     }
 
     protected static function injectApplicationServices(ContainerInterface $container, Application $application)