Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
automatic_updates-3449631
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
automatic_updates-3449631
Commits
fbc1ff9c
Commit
fbc1ff9c
authored
11 months ago
by
Adam G-H
Committed by
Ted Bowman
11 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3432447
: Fix deprecations flagged against Drupal core 11.x
parent
557b8781
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+4
-0
4 additions, 0 deletions
.gitlab-ci.yml
package_manager/src/PackageManagerUpdateProcessor.php
+14
-2
14 additions, 2 deletions
package_manager/src/PackageManagerUpdateProcessor.php
with
18 additions
and
2 deletions
.gitlab-ci.yml
+
4
−
0
View file @
fbc1ff9c
...
...
@@ -234,6 +234,10 @@ phpunit (next major):
-
when
:
on_success
variables
:
_PHPUNIT_EXTRA
:
'
--types
PHPUnit-$TEST_TYPE
--module
$MODULE'
# This variable prevents a deprecation error; see https://www.drupal.org/node/3422624.
MINK_DRIVER_ARGS_WEBDRIVER
:
'
["chrome",
{"browserName":"chrome","goog:chromeOptions":{"args":["--disable-dev-shm-usage","--disable-gpu","--headless"]}},
"http://localhost:9515"]'
# Ensure deprecations will cause tests to fail, except for deprecations that core
# specifically ignores.
SYMFONY_DEPRECATIONS_HELPER
:
'
ignoreFile=$CI_PROJECT_DIR/$_WEB_ROOT/core/.deprecation-ignore.txt'
# This is a really dirty hack to work around a possible bug in Drush when it runs against
# Drupal core 11.x-dev:
...
...
This diff is collapsed.
Click to expand it.
package_manager/src/PackageManagerUpdateProcessor.php
+
14
−
2
View file @
fbc1ff9c
...
...
@@ -4,6 +4,7 @@ declare(strict_types = 1);
namespace
Drupal\package_manager
;
use
Drupal\Component\Datetime\TimeInterface
;
use
Drupal\Core\Config\ConfigFactoryInterface
;
use
Drupal\Core\KeyValueStore\KeyValueExpirableFactoryInterface
;
use
Drupal\Core\KeyValueStore\KeyValueFactoryInterface
;
...
...
@@ -48,9 +49,20 @@ final class PackageManagerUpdateProcessor extends UpdateProcessor {
* The key/value factory.
* @param \Drupal\Core\KeyValueStore\KeyValueExpirableFactoryInterface $key_value_expirable_factory
* The expirable key/value factory.
* @param \Drupal\Component\Datetime\TimeInterface $time
* The time service.
*/
public
function
__construct
(
ConfigFactoryInterface
$config_factory
,
QueueFactory
$queue_factory
,
UpdateFetcherInterface
$update_fetcher
,
StateInterface
$state_store
,
PrivateKey
$private_key
,
KeyValueFactoryInterface
$key_value_factory
,
KeyValueExpirableFactoryInterface
$key_value_expirable_factory
)
{
parent
::
__construct
(
$config_factory
,
$queue_factory
,
$update_fetcher
,
$state_store
,
$private_key
,
$key_value_factory
,
$key_value_expirable_factory
);
public
function
__construct
(
ConfigFactoryInterface
$config_factory
,
QueueFactory
$queue_factory
,
UpdateFetcherInterface
$update_fetcher
,
StateInterface
$state_store
,
PrivateKey
$private_key
,
KeyValueFactoryInterface
$key_value_factory
,
KeyValueExpirableFactoryInterface
$key_value_expirable_factory
,
TimeInterface
$time
,
)
{
parent
::
__construct
(
...
func_get_args
());
$this
->
fetchQueue
=
$queue_factory
->
get
(
'package_manager.update_fetch_tasks'
);
$this
->
tempStore
=
$key_value_expirable_factory
->
get
(
'package_manager.update'
);
$this
->
fetchTaskStore
=
$key_value_factory
->
get
(
'package_manager.update_fetch_task'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment