Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
features-3195976
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
features-3195976
Commits
d8bb8c1b
Commit
d8bb8c1b
authored
1 year ago
by
Dave Reid
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3407086
by Dave Reid: Update Drush commands to be compatible with Drush 12+.
parent
788cfa3e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
drush.services.yml
+1
-1
1 addition, 1 deletion
drush.services.yml
src/Drush/Commands/FeaturesCommands.php
+18
-9
18 additions, 9 deletions
src/Drush/Commands/FeaturesCommands.php
with
19 additions
and
10 deletions
drush.services.yml
+
1
−
1
View file @
d8bb8c1b
services
:
features.commands
:
class
:
\
Drupal\features\Commands\FeaturesCommands
class
:
Drupal\features\
Drush\
Commands\FeaturesCommands
arguments
:
-
'
@features_assigner'
-
'
@features.manager'
...
...
This diff is collapsed.
Click to expand it.
src/Commands/FeaturesCommands.php
→
src/
Drush/
Commands/FeaturesCommands.php
+
18
−
9
View file @
d8bb8c1b
<?php
namespace
Drupal\features\Commands
;
namespace
Drupal\features\
Drush\
Commands
;
use
Consolidation\OutputFormatters\StructuredData\RowsOfFields
;
use
Drupal\Component\Diff\DiffFormatter
;
use
Drupal\config_update
\ConfigDiffInterface
;
use
Drupal\Core\Config\StorageInterface
;
use
Drupal\Core\DependencyInjection\ContainerInjectionInterface
;
use
Drupal\features\Exception\DomainException
;
use
Drupal\features\Exception\InvalidArgumentException
;
use
Drupal\features\FeaturesAssignerInterface
;
...
...
@@ -16,11 +17,12 @@ use Drupal\features\Plugin\FeaturesGeneration\FeaturesGenerationWrite;
use
Drush\Commands\DrushCommands
;
use
Drush\Exceptions\UserAbortException
;
use
Drush\Utils\StringUtils
;
use
Symfony\Component\DependencyInjection\ContainerInterface
;
/**
* Drush commands for Features.
*/
class
FeaturesCommands
extends
DrushCommands
{
class
FeaturesCommands
extends
DrushCommands
implements
ContainerInjectionInterface
{
const
OPTIONS
=
[
'bundle'
=>
NULL
,
...
...
@@ -104,13 +106,7 @@ class FeaturesCommands extends DrushCommands {
* @param \Drupal\Core\Config\StorageInterface $configStorage
* The config.storage service.
*/
public
function
__construct
(
FeaturesAssignerInterface
$assigner
,
FeaturesManagerInterface
$manager
,
FeaturesGeneratorInterface
$generator
,
ConfigDiffInterface
$configDiff
,
StorageInterface
$configStorage
)
{
public
function
__construct
(
FeaturesAssignerInterface
$assigner
,
FeaturesManagerInterface
$manager
,
FeaturesGeneratorInterface
$generator
,
ConfigDiffInterface
$configDiff
,
StorageInterface
$configStorage
)
{
parent
::
__construct
();
$this
->
assigner
=
$assigner
;
$this
->
configDiff
=
$configDiff
;
...
...
@@ -119,6 +115,19 @@ class FeaturesCommands extends DrushCommands {
$this
->
manager
=
$manager
;
}
/**
* {@inheritdoc}
*/
public
static
function
create
(
ContainerInterface
$container
)
{
return
new
static
(
$container
->
get
(
'features_assigner'
),
$container
->
get
(
'features.manager'
),
$container
->
get
(
'features_generator'
),
$container
->
get
(
'config_update.config_diff'
),
$container
->
get
(
'config.storage'
)
);
}
/**
* Applies global options for Features drush commands, including the bundle.
*
...
...
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