
| Current Path : /var/www/html/c12park/vendor/chi-teck/drupal-code-generator/src/Command/PhpStormMeta/ |
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/c12park/vendor/chi-teck/drupal-code-generator/src/Command/PhpStormMeta/Services.php |
<?php
declare(strict_types=1);
namespace DrupalCodeGenerator\Command\PhpStormMeta;
use DrupalCodeGenerator\Asset\File;
use DrupalCodeGenerator\Helper\Drupal\ServiceInfo;
/**
* Generates PhpStorm meta-data for services.
*/
final class Services {
/**
* Constructs the object.
*/
public function __construct(
private readonly ServiceInfo $serviceInfo,
) {}
/**
* Generator callback.
*/
public function __invoke(): File {
return File::create('.phpstorm.meta.php/services.php')
->template('services.php.twig')
->vars(['services' => $this->serviceInfo->getServiceClasses()]);
}
}