File tree Expand file tree Collapse file tree 4 files changed +8
-11
lines changed Expand file tree Collapse file tree 4 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 13
13
strategy :
14
14
matrix :
15
15
include :
16
- - php-version : 8.0
17
- - php-version : 8.1
18
16
- php-version : 8.2
17
+ - php-version : 8.3
19
18
20
19
steps :
21
20
- name : checkout
Original file line number Diff line number Diff line change 12
12
13
13
namespace PMG \PheanstalkBundle \Command ;
14
14
15
+ use PMG \PheanstalkBundle \Service \QueueUtilities ;
16
+ use Symfony \Component \Console \Attribute \AsCommand ;
15
17
use Symfony \Component \Console \Command \Command ;
16
18
use Symfony \Component \Console \Input \InputArgument ;
17
- use Symfony \Component \Console \Input \InputOption ;
18
19
use Symfony \Component \Console \Input \InputInterface ;
20
+ use Symfony \Component \Console \Input \InputOption ;
19
21
use Symfony \Component \Console \Output \OutputInterface ;
20
- use Pheanstalk \PheanstalkInterface ;
21
- use PMG \PheanstalkBundle \Service \QueueUtilities ;
22
22
23
23
/**
24
24
* Purge a single beanstalkd tube of jobs.
25
25
*/
26
+ #[AsCommand(name: 'pheanstalk:purge-queue ' )]
26
27
final class PurgeQueueCommand extends Command
27
28
{
28
- protected static $ defaultName = 'pheanstalk:purge-queue ' ;
29
-
30
29
public function __construct (private QueueUtilities $ queueUtilities , $ name =null )
31
30
{
32
31
parent ::__construct ($ name );
Original file line number Diff line number Diff line change 12
12
13
13
namespace PMG \PheanstalkBundle \Command ;
14
14
15
+ use Symfony \Component \Console \Attribute \AsCommand ;
15
16
use Symfony \Component \Console \Command \Command ;
16
17
use Symfony \Component \Console \Input \InputArgument ;
17
18
use Symfony \Component \Console \Input \InputOption ;
18
19
use Symfony \Component \Console \Input \InputInterface ;
19
20
use Symfony \Component \Console \Output \OutputInterface ;
20
- use Pheanstalk \PheanstalkInterface ;
21
21
use Pheanstalk \Exception \ServerException ;
22
22
use PMG \PheanstalkBundle \Service \StatsService ;
23
23
26
26
*
27
27
* @since 1.0
28
28
*/
29
+ #[AsCommand(name: 'pheanstalk:stats ' )]
29
30
final class StatsCommand extends Command
30
31
{
31
- protected static $ defaultName = 'pheanstalk:stats ' ;
32
-
33
32
/**
34
33
* @var StatsService
35
34
*/
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ final class PmgPheanstalkExtension extends ConfigurableExtension
37
37
/**
38
38
* {@inheritdoc}
39
39
*/
40
- protected function loadInternal (array $ config , ContainerBuilder $ container )
40
+ protected function loadInternal (array $ config , ContainerBuilder $ container ): void
41
41
{
42
42
$ connections = [];
43
43
foreach ($ config ['connections ' ] as $ name => $ connConfig ) {
You can’t perform that action at this time.
0 commit comments