
| Current Path : /var/www/html/12park/vendor/chi-teck/drupal-code-generator/src/Event/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/12park/vendor/chi-teck/drupal-code-generator/src/Event/GeneratorInfoAlter.php |
<?php
declare(strict_types=1);
namespace DrupalCodeGenerator\Event;
/**
* Fired when altering registered generators.
*/
final class GeneratorInfoAlter {
/**
* @psalm-param list<\Symfony\Component\Console\Command\Command> $generators
*/
public array $generators = [];
/**
* Constructs the event object.
*
* @psalm-param list<\Symfony\Component\Console\Command\Command> $generators
*/
public function __construct(array $generators) {
// Index generators by name to ease access.
foreach ($generators as $generator) {
/** @psalm-suppress PossiblyNullArrayOffset */
$this->generators[$generator->getName()] = $generator;
}
}
}