$definition->
setMethodCalls([]);
// Replace lock service with no-op implementation as Drupal installation can
// only occur in a single thread and the site should not be publicly
// available.
$container ->
register('lock', NullLockBackend::
class);
// Remove the cache tags invalidator tag from the cache tags storage, so
// that we don't call it when cache tags are invalidated in the installer.
$container->
getDefinition('cache_tags.invalidator.checksum'
) ->
clearTag('cache_tags_invalidator'
);
// Use performance-optimized extension lists.
$container->
getDefinition('extension.list.module'
)->
setClass(InstallerModuleExtensionList::
class);
$container->
getDefinition('extension.list.theme'
)->
setClass(InstallerThemeExtensionList::
class);
$container->
getDefinition('extension.list.theme_engine'
)->
setClass(InstallerThemeEngineExtensionList::
class);
// Don't register the lazy route provider in the super early installer.
if (static::
class === NormalInstallerServiceProvider::
class) { $lazy_route_provider =
$container->
register('router.route_provider.installer'
);
$lazy_route_provider ->
setClass(InstallerRouteProviderLazyBuilder::
class)