Skip to content

Commit 8189cdf

Browse files
committed
Updated Fasit ping command
1 parent d5d476b commit 8189cdf

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

modules/os2forms_fasit/drush.services.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

modules/os2forms_fasit/src/Commands/FasitTestCommands.php renamed to modules/os2forms_fasit/src/Drush/Commands/FasitTestCommand.php

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,32 @@
11
<?php
22

3-
namespace Drupal\os2forms_fasit\Commands;
3+
namespace Drupal\os2forms_fasit\Drush\Commands;
44

55
use Drupal\os2forms_fasit\Helper\FasitHelper;
66
use Drush\Commands\DrushCommands;
7+
use Symfony\Component\DependencyInjection\ContainerInterface;
78

89
/**
9-
* Test commands for fasit.
10+
* A Drush commandfile.
1011
*/
11-
class FasitTestCommands extends DrushCommands {
12+
final class FasitTestCommand extends DrushCommands {
1213

1314
/**
14-
* Constructor.
15+
* Constructs a FasitTestCommand object.
1516
*/
1617
public function __construct(
1718
private readonly FasitHelper $helper,
1819
) {
20+
parent::__construct();
21+
}
22+
23+
/**
24+
* {@inheritdoc}
25+
*/
26+
public static function create(ContainerInterface $container) {
27+
return new static(
28+
$container->get(FasitHelper::class),
29+
);
1930
}
2031

2132
/**

0 commit comments

Comments
 (0)