Skip to content
Snippets Groups Projects
Commit dcc6dfd3 authored by Adam G-H's avatar Adam G-H
Browse files

Issue #3351925 by phenaproxima, tedbow: Reduce core requirement to ^10 to...

Issue #3351925 by phenaproxima, tedbow: Reduce core requirement to ^10 to allow manual testing of Automatic Updates
parent 1f4af774
No related branches found
No related tags found
No related merge requests found
name: 'Automatic Updates' name: 'Automatic Updates'
type: module type: module
description: 'Automatically updates Drupal core.' description: 'Automatically updates Drupal core.'
core_version_requirement: ^9.7 || ^10.1 core_version_requirement: ^9.7 || ^10
dependencies: dependencies:
- drupal:package_manager - drupal:package_manager
- drupal:update - drupal:update
name: 'Automatic Updates Extensions' name: 'Automatic Updates Extensions'
type: module type: module
description: 'Allows updates to themes and modules' description: 'Allows updates to themes and modules'
core_version_requirement: ^9.7 || ^10.1 core_version_requirement: ^9.7 || ^10
lifecycle: experimental lifecycle: experimental
dependencies: dependencies:
- drupal:automatic_updates - drupal:automatic_updates
...@@ -18,6 +18,9 @@ ...@@ -18,6 +18,9 @@
"php-tuf/composer-stager": "2.0-alpha1", "php-tuf/composer-stager": "2.0-alpha1",
"composer-runtime-api": "^2.1" "composer-runtime-api": "^2.1"
}, },
"require-dev": {
"colinodell/psr-testlogger": "^1.2"
},
"scripts": { "scripts": {
"phpcbf": "scripts/phpcbf.sh", "phpcbf": "scripts/phpcbf.sh",
"phpcs": "scripts/phpcs.sh", "phpcs": "scripts/phpcs.sh",
......
name: 'Package Manager' name: 'Package Manager'
type: module type: module
description: 'API module providing functionality to stage package installs and updates with Composer.' description: 'API module providing functionality to stage package installs and updates with Composer.'
core_version_requirement: ^9.7 || ^10.1 core_version_requirement: ^9.7 || ^10
dependencies: dependencies:
- drupal:update - drupal:update
...@@ -86,6 +86,35 @@ final class PackageManagerServiceProvider extends ServiceProviderBase { ...@@ -86,6 +86,35 @@ final class PackageManagerServiceProvider extends ServiceProviderBase {
} }
} }
// BEGIN: DELETE FROM CORE MERGE REQUEST
// Remove all of this when Drupal 10.1 is the minimum required version of
// Drupal core.
$aliases = [
'config.factory' => 'Drupal\Core\Config\ConfigFactoryInterface',
'module_handler' => 'Drupal\Core\Extension\ModuleHandlerInterface',
'state' => 'Drupal\Core\State\StateInterface',
'extension.list.module' => 'Drupal\Core\Extension\ModuleExtensionList',
'extension.list.theme' => 'Drupal\Core\Extension\ThemeExtensionList',
'stream_wrapper_manager' => 'Drupal\Core\StreamWrapper\StreamWrapperManagerInterface',
'database' => 'Drupal\Core\Database\Connection',
'queue' => 'Drupal\Core\Queue\QueueFactory',
'private_key' => 'Drupal\Core\PrivateKey',
'datetime.time' => 'Drupal\Component\Datetime\TimeInterface',
'event_dispatcher' => 'Symfony\Contracts\EventDispatcher\EventDispatcherInterface',
'plugin.manager.mail' => 'Drupal\Core\Mail\MailManagerInterface',
'language_manager' => 'Drupal\Core\Language\LanguageManagerInterface',
'file_system' => 'Drupal\Core\File\FileSystemInterface',
'tempstore.shared' => 'Drupal\Core\TempStore\SharedTempStoreFactory',
'class_resolver' => 'Drupal\Core\DependencyInjection\ClassResolverInterface',
'request_stack' => 'Symfony\Component\HttpFoundation\RequestStack',
];
foreach ($aliases as $service_id => $alias) {
if (!$container->hasAlias($alias)) {
$container->setAlias($alias, $service_id);
}
}
// END: DELETE FROM CORE MERGE REQUEST
// Decorate certain Composer Stager preconditions. // Decorate certain Composer Stager preconditions.
$container->register(NoSymlinksPointToADirectory::class) $container->register(NoSymlinksPointToADirectory::class)
->setPublic(FALSE) ->setPublic(FALSE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment