diff --git a/core/lib/Drupal/Core/DrupalKernel.php b/core/lib/Drupal/Core/DrupalKernel.php index adb8075..e93c946 100644 --- a/core/lib/Drupal/Core/DrupalKernel.php +++ b/core/lib/Drupal/Core/DrupalKernel.php @@ -37,7 +37,6 @@ use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; use Symfony\Component\HttpKernel\TerminableInterface; -use Composer\Autoload\ClassLoader; use Symfony\Component\Routing\Route; /** diff --git a/core/modules/simpletest/src/TestDiscovery.php b/core/modules/simpletest/src/TestDiscovery.php index 60ef6ce..4c762a7 100644 --- a/core/modules/simpletest/src/TestDiscovery.php +++ b/core/modules/simpletest/src/TestDiscovery.php @@ -7,7 +7,6 @@ namespace Drupal\simpletest; -use Composer\Autoload\ClassLoader; use Doctrine\Common\Annotations\SimpleAnnotationReader; use Doctrine\Common\Reflection\StaticReflectionParser; use Drupal\Component\Annotation\Reflection\MockFileFinder; @@ -54,12 +53,14 @@ class TestDiscovery { /** * Constructs a new test discovery. * - * @param \Composer\Autoload\ClassLoader $class_loader - * The class loader. + * @param $class_loader + * The class loader. Normally Composer's ClassLoader, as included by the + * front controller, but may also be decorated; e.g., + * \Symfony\Component\ClassLoader\ApcClassLoader. * @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend * (optional) Backend for caching discovery results. */ - public function __construct(ClassLoader $class_loader, CacheBackendInterface $cache_backend = NULL) { + public function __construct($class_loader, CacheBackendInterface $cache_backend = NULL) { $this->classLoader = $class_loader; $this->cacheBackend = $cache_backend; }