Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3217783
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
drupal-3217783
Commits
ad95d13a
Verified
Commit
ad95d13a
authored
4 months ago
by
Pierre Rudloff
Browse files
Options
Downloads
Patches
Plain Diff
Promote properties
parent
499c6746
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Checking pipeline status
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/lib/Drupal/Core/Config/ExportStorageManager.php
+7
-34
7 additions, 34 deletions
core/lib/Drupal/Core/Config/ExportStorageManager.php
with
7 additions
and
34 deletions
core/lib/Drupal/Core/Config/ExportStorageManager.php
+
7
−
34
View file @
ad95d13a
...
...
@@ -22,13 +22,6 @@ final class ExportStorageManager implements StorageManagerInterface {
*/
const
LOCK_NAME
=
'config_storage_export_manager'
;
/**
* The active configuration storage.
*
* @var \Drupal\Core\Config\StorageInterface
*/
protected
$active
;
/**
* The database storage.
*
...
...
@@ -36,27 +29,6 @@ final class ExportStorageManager implements StorageManagerInterface {
*/
protected
$storage
;
/**
* The drupal database connection.
*
* @var \Drupal\Core\Database\Connection
*/
protected
$connection
;
/**
* The event dispatcher.
*
* @var \Symfony\Contracts\EventDispatcher\EventDispatcherInterface
*/
protected
$eventDispatcher
;
/**
* The used lock backend instance.
*
* @var \Drupal\Core\Lock\LockBackendInterface
*/
protected
$lock
;
/**
* ExportStorageManager constructor.
*
...
...
@@ -64,16 +36,17 @@ final class ExportStorageManager implements StorageManagerInterface {
* The active config storage to prime the export storage.
* @param \Drupal\Core\Database\Connection $connection
* The database connection.
* @param \Symfony\Contracts\EventDispatcher\EventDispatcherInterface $event
_d
ispatcher
* @param \Symfony\Contracts\EventDispatcher\EventDispatcherInterface $event
D
ispatcher
* The event dispatcher.
* @param \Drupal\Core\Lock\LockBackendInterface $lock
* The used lock backend instance.
*/
public
function
__construct
(
StorageInterface
$active
,
Connection
$connection
,
EventDispatcherInterface
$event_dispatcher
,
LockBackendInterface
$lock
)
{
$this
->
active
=
$active
;
$this
->
connection
=
$connection
;
$this
->
eventDispatcher
=
$event_dispatcher
;
$this
->
lock
=
$lock
;
public
function
__construct
(
protected
StorageInterface
$active
,
protected
Connection
$connection
,
protected
EventDispatcherInterface
$eventDispatcher
,
protected
LockBackendInterface
$lock
,
)
{
// The point of this service is to provide the storage and dispatch the
// event when needed, so the storage itself can not be a service.
$this
->
storage
=
new
DatabaseStorage
(
$connection
,
'config_export'
);
...
...
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