I sought to set up a new site using the following commands (plus setting up a DB and settings.php, of course):
composer create-project drupal/recommended-project project
cd project
composer require hirak/prestissimo drush/drush
The resulting installation works fine if I use the browser based install but if I try to do drush si -y, it runs to completion but attempting to visit the site gives the following error:
The website encountered an unexpected error. Please try again later.
TypeError: Argument 2 passed to Symfony\Component\Routing\RouteCollection::add() must be an instance of Symfony\Component\Routing\Route, bool given, called in /home/nigel/public_html/sites/pdftron-test/web/core/lib/Drupal/Core/Routing/RouteProvider.php on line 382 in Symfony\Component\Routing\RouteCollection->add() (line 74 of /home/nigel/public_html/sites/pdftron-test/vendor/symfony/routing/RouteCollection.php).
Symfony\Component\Routing\RouteCollection->add('user.reset.login', ) (Line: 382)
Drupal\Core\Routing\RouteProvider->getRoutesByPath('/user/reset/1/1591246278/kePofF69JBJQtdHnGINRNWbr46V9akA4vIAtpmHFb0E/login') (Line: 182)
Drupal\Core\Routing\RouteProvider->getRouteCollectionForRequest(Object) (Line: 237)
Drupal\Core\Routing\Router->getInitialRouteCollection(Object) (Line: 121)
Drupal\Core\Routing\Router->matchRequest(Object) (Line: 92)
Drupal\Core\Routing\AccessAwareRouter->matchRequest(Object) (Line: 112)
Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest(Object, 'kernel.request', Object) (Line: 78)
Symfony\Component\EventDispatcher\LegacyEventDispatcherProxy->dispatch(Object, 'kernel.request') (Line: 134)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 705)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
So far I've found that the autoloader's namespace cache seems to be almost empty, resulting in $check returning '' at line 104 of vendor/laminas/laminas-zendframework-bridge/src/Autoloader.php. Its contents at that point are:
Array
(
[Laminas\Xml\] => ZendXml\
[Laminas\OAuth\] => ZendOAuth\
[Laminas\Diagnostics\] => ZendDiagnostics\
[Laminas\DeveloperTools\] => ZendDeveloperTools\
[Laminas\ReCaptcha\] => ZendService\ReCaptcha\
[Laminas\Twitter\] => ZendService\Twitter\
[Laminas\] => Zend\
[Mezzio\ProblemDetails\] => Zend\ProblemDetails\
[Mezzio\] => Zend\Expressive\
[Laminas\ComposerAutoloading\] => ZF\ComposerAutoloading\
[Laminas\DevelopmentMode\] => ZF\DevelopmentMode\
[Laminas\ApiTools\Admin\] => ZF\Apigility\Admin\
[Laminas\ApiTools\Doctrine\] => ZF\Apigility\Doctrine\
[Laminas\ApiTools\Documentation\] => ZF\Apigility\Documentation\
[Laminas\ApiTools\Example\] => ZF\Apigility\Example\
[Laminas\ApiTools\Provider\] => ZF\Apigility\Provider\
[Laminas\ApiTools\Welcome\] => ZF\Apiglity\Welcome\
[Laminas\ApiTools\] => ZF\
)
[nigel@nigel]$ drush --version
Drush Commandline Tool 10.2.2