-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates console commands for queue and cache component (#68)
* Updates console commands for queue and cache component - Deprecates commands with old names for queue - Adds new commands with correct names for queue - Deprecates command for cache components. * Fixes unit tests * Fixes unit tests
- Loading branch information
1 parent
00620ef
commit 126be0c
Showing
14 changed files
with
113 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Spiral\RoadRunnerBridge\Console\Command\Queue; | ||
|
||
use Spiral\Console\Command; | ||
use Spiral\Console\Console; | ||
|
||
/** | ||
* @deprecated Will be removed in the next major release of RoadRunner Bridge (version 3.0) | ||
*/ | ||
final class DeprecatedListCommand extends Command | ||
{ | ||
protected const SIGNATURE = 'roadrunner:list'; | ||
protected const DESCRIPTION = '(Deprecated) Displays a list of available job pipelines for the RoadRunner'; | ||
|
||
public function perform(Console $console): int | ||
{ | ||
$this->warning( | ||
'WARNING: This command has been deprecated and will be removed in the next major release of RoadRunner Bridge (version 3.0).', | ||
); | ||
|
||
return $console->run('rr:jobs:list', [], $this->output)->getCode(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Spiral\RoadRunnerBridge\Console\Command\Queue; | ||
|
||
use Spiral\Console\Command; | ||
use Spiral\Console\Console; | ||
|
||
/** | ||
* @deprecated Will be removed in the next major release of RoadRunner Bridge (version 3.0) | ||
*/ | ||
final class DeprecatedPauseCommand extends Command | ||
{ | ||
protected const SIGNATURE = 'roadrunner:pause {pipeline : Pipeline name}'; | ||
protected const DESCRIPTION = '(Deprecated) Pauses the consumption of jobs for the specified pipeline in the RoadRunner.'; | ||
|
||
public function perform(Console $console): int | ||
{ | ||
$this->warning( | ||
'WARNING: This command has been deprecated and will be removed in the next major release of RoadRunner Bridge (version 3.0).', | ||
); | ||
|
||
return $console->run('rr:jobs:pause', [ | ||
'pipeline' => $this->argument('pipeline'), | ||
], $this->output)->getCode(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Spiral\RoadRunnerBridge\Console\Command\Queue; | ||
|
||
use Spiral\Console\Command; | ||
use Spiral\Console\Console; | ||
|
||
/** | ||
* @deprecated Will be removed in the next major release of RoadRunner Bridge (version 3.0) | ||
*/ | ||
final class DeprecatedResumeCommand extends Command | ||
{ | ||
protected const SIGNATURE = 'roadrunner:resume {pipeline : Pipeline name}'; | ||
protected const DESCRIPTION = '(Deprecated) Resumes the consumption of jobs for the specified pipeline in the RoadRunner.'; | ||
|
||
public function perform(Console $console): int | ||
{ | ||
$this->warning( | ||
'WARNING: This command has been deprecated and will be removed in the next major release of RoadRunner Bridge (version 3.0).', | ||
); | ||
|
||
return $console->run('rr:jobs:pause', [ | ||
'pipeline' => $this->argument('pipeline'), | ||
], $this->output)->getCode(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters