Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
do_username
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
project
do_username
Commits
7abbd9a5
Unverified
Commit
7abbd9a5
authored
5 months ago
by
Hussain Abbas
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3472367
by hussainweb: Error with Drush 13
parent
120d7d84
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!13
Issue #3472367 by hussainweb: Error with Drush 13
Pipeline
#274872
passed with warnings
5 months ago
Stage: build
Stage: validate
Stage: test
Changes
2
Pipelines
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/Commands/DOCopyFieldValues.php
+1
-5
1 addition, 5 deletions
src/Commands/DOCopyFieldValues.php
with
2 additions
and
6 deletions
drush.services.yml
+
1
−
1
View file @
7abbd9a5
...
...
@@ -3,4 +3,4 @@ services:
class
:
\Drupal\do_username\Commands\DOCopyFieldValues
tags
:
-
{
name
:
drush.command
}
arguments
:
[
'
@entity_type.manager'
,
'
@entity_field.manager'
,
'
@logger.factory'
]
arguments
:
[
'
@entity_type.manager'
,
'
@entity_field.manager'
]
This diff is collapsed.
Click to expand it.
src/Commands/DOCopyFieldValues.php
+
1
−
5
View file @
7abbd9a5
...
...
@@ -4,7 +4,6 @@ namespace Drupal\do_username\Commands;
use
Drupal\Core\Entity\EntityFieldManager
;
use
Drupal\Core\Entity\EntityTypeManager
;
use
Drupal\Core\Logger\LoggerChannelFactoryInterface
;
use
Drush\Commands\DrushCommands
;
/**
...
...
@@ -49,13 +48,10 @@ class DOCopyFieldValues extends DrushCommands {
* Entity type service.
* @param \Drupal\Core\Entity\EntityFieldManager $entityFieldManager
* Entity type service.
* @param \Drupal\Core\Logger\LoggerChannelFactoryInterface $loggerChannelFactory
* Logger service.
*/
public
function
__construct
(
EntityTypeManager
$entityTypeManager
,
EntityFieldManager
$entityFieldManager
,
LoggerChannelFactoryInterface
$loggerChannelFactory
)
{
public
function
__construct
(
EntityTypeManager
$entityTypeManager
,
EntityFieldManager
$entityFieldManager
)
{
$this
->
entityTypeManager
=
$entityTypeManager
;
$this
->
entityFieldManager
=
$entityFieldManager
;
$this
->
logger
=
$loggerChannelFactory
->
get
(
'do_username'
);
}
/**
...
...
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