Same filename in this branch
- 5.x src/Drush/Commands/DevelUuidCommand.php
Namespace
Drupal\devel\Command
File
-
src/Command/DevelUuidCommand.php
View source
<?php
declare (strict_types=1);
namespace Drupal\devel\Command;
use Drupal\Component\Uuid\UuidInterface;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Output\OutputInterface;
class DevelUuidCommand {
public const NAME = 'devel:uuid';
public function __construct(protected readonly UuidInterface $uuid) {
}
public function __invoke(OutputInterface $output) : int {
$output->writeln($this->uuid
->generate());
return Command::SUCCESS;
}
}
Classes