Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
private_message
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
private_message
Commits
697aeb8d
Commit
697aeb8d
authored
1 year ago
by
Maxime Roux
Committed by
Artem Sylchuk
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3414396
by MacSim, dd_diablo, artem_sylchuk: Drush 12 compatibility
parent
b8e66391
No related branches found
No related tags found
1 merge request
!75
Issue #3414396: Drush 12 compatibility
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
drush.services.yml
+0
-8
0 additions, 8 deletions
drush.services.yml
private_message.services.yml
+8
-0
8 additions, 0 deletions
private_message.services.yml
src/Drush/Commands/PrivateMessageCommands.php
+12
-1
12 additions, 1 deletion
src/Drush/Commands/PrivateMessageCommands.php
with
20 additions
and
9 deletions
drush.services.yml
deleted
100644 → 0
+
0
−
8
View file @
b8e66391
services
:
private_message.commands
:
class
:
\Drupal\private_message\Commands\PrivateMessageCommands
arguments
:
-
'
@private_message.service'
-
'
@entity_type.manager'
tags
:
-
{
name
:
drush.command
}
This diff is collapsed.
Click to expand it.
private_message.services.yml
+
8
−
0
View file @
697aeb8d
...
...
@@ -47,3 +47,11 @@ services:
private_message.private_message_config_form_manager
:
class
:
'
%private_message.private_message_config_form_manager.class%'
parent
:
default_plugin_manager
private_message.commands
:
class
:
\Drupal\private_message\Drush\Commands\PrivateMessageCommands
arguments
:
-
'
@private_message.service'
-
'
@entity_type.manager'
tags
:
-
{
name
:
drush.command
}
This diff is collapsed.
Click to expand it.
src/Commands/PrivateMessageCommands.php
→
src/
Drush/
Commands/PrivateMessageCommands.php
+
12
−
1
View file @
697aeb8d
<?php
namespace
Drupal\private_message\Commands
;
namespace
Drupal\private_message\
Drush\
Commands
;
use
Drupal\Component\DependencyInjection\ContainerInterface
;
use
Drupal\Core\Entity\EntityTypeManagerInterface
;
use
Drupal\Core\StringTranslation\StringTranslationTrait
;
use
Drupal\private_message
\Service\PrivateMessageService
;
...
...
@@ -54,6 +55,16 @@ class PrivateMessageCommands extends DrushCommands {
$this
->
entityTypeManager
=
$entityTypeManager
;
}
/**
* {@inheritdoc}
*/
public
static
function
create
(
ContainerInterface
$container
):
self
{
return
new
static
(
$container
->
get
(
'private_message.service'
),
$container
->
get
(
'entity_type.manager'
)
);
}
/**
* Prepares the Private Message module for uninstallation.
*
...
...
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