File manager - Edit - /var/www/payraty/helpdesk/vendor/rector/rector/vendor/rector/rector-generator/src/Command/InitRecipeCommand.php
Back
<?php declare (strict_types=1); namespace Rector\RectorGenerator\Command; use Rector\RectorGenerator\TemplateInitializer; use RectorPrefix202208\Symfony\Component\Console\Command\Command; use RectorPrefix202208\Symfony\Component\Console\Input\InputInterface; use RectorPrefix202208\Symfony\Component\Console\Output\OutputInterface; final class InitRecipeCommand extends Command { /** * @readonly * @var \Rector\RectorGenerator\TemplateInitializer */ private $templateInitializer; public function __construct(TemplateInitializer $templateInitializer) { $this->templateInitializer = $templateInitializer; parent::__construct(); } protected function configure() : void { $this->setName('init-recipe'); $this->setDescription('[DEV] Initialize "rector-recipe.php" config'); } protected function execute(InputInterface $input, OutputInterface $output) : int { $this->templateInitializer->initialize(__DIR__ . '/../../templates/rector-recipe.php', 'rector-recipe.php'); return self::SUCCESS; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings