Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scheduled_transitions
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
scheduled_transitions
Merge requests
!48
Modernize Drush commands
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Modernize Drush commands
issue/scheduled_transitions-3470752:update-drush
into
2.7.x
Overview
2
Commits
1
Pipelines
1
Changes
3
Open
Moshe Weitzman
requested to merge
issue/scheduled_transitions-3470752:update-drush
into
2.7.x
9 months ago
Overview
2
Commits
1
Pipelines
1
Changes
3
Expand
1
0
Merge request reports
Compare
2.7.x
2.7.x (HEAD)
and
latest version
latest version
f7b87ddc
1 commit,
9 months ago
3 files
+
11
−
12
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
src/Commands/ScheduledTransitionsCommands.php
→
src/
Drush/
Commands/ScheduledTransitionsCommands.php
+
7
−
5
Options
@@ -2,15 +2,19 @@
declare
(
strict_types
=
1
);
namespace
Drupal\scheduled_transitions\Commands
;
namespace
Drupal\scheduled_transitions\
Drush\
Commands
;
use
Drupal\scheduled_transitions
\ScheduledTransitionsJobsInterface
;
use
Drush\Attributes
as
CLI
;
use
Drush\Commands\AutowireTrait
;
use
Drush\Commands\DrushCommands
;
/**
* Drush command for Scheduled Transitions.
*/
class
ScheduledTransitionsCommands
extends
DrushCommands
{
final
class
ScheduledTransitionsCommands
extends
DrushCommands
{
use
AutowireTrait
;
public
function
__construct
(
protected
ScheduledTransitionsJobsInterface
$jobs
,
@@ -19,10 +23,8 @@ class ScheduledTransitionsCommands extends DrushCommands {
/**
* Fills queue with crawler jobs.
*
* @command scheduled-transitions:queue-jobs
* @aliases sctr-jobs
*/
#[CLI\Command(name: 'scheduled-transitions:queue-jobs', aliases: ['sctr-jobs'])]
public
function
crawlJobCreator
():
void
{
$this
->
jobs
->
jobCreator
();
$this
->
logger
()
->
success
(
\dt
(
'Scheduled transitions queued.'
));
Loading