Skip to content

Commit 379e89f

Browse files
committed
Rename CompileCommand to PrepareCommand
1 parent 4314be3 commit 379e89f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/phar.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848

4949
- name: "Prepare for PHAR compilation"
5050
working-directory: "compiler"
51-
run: "php bin/compile"
51+
run: "php bin/prepare"
5252

5353
- name: "Compile PHAR"
5454
working-directory: "compiler/build"
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
#!/usr/bin/env php
22
<?php declare(strict_types = 1);
33

4-
use PHPStan\Compiler\Console\CompileCommand;
4+
use PHPStan\Compiler\Console\PrepareCommand;
55
use PHPStan\Compiler\Filesystem\SymfonyFilesystem;
66
use Symfony\Component\Console\Application;
77

88
require_once __DIR__ . '/../vendor/autoload.php';
99

10-
$compileCommand = new CompileCommand(
10+
$prepareCommand = new PrepareCommand(
1111
new SymfonyFilesystem(new \Symfony\Component\Filesystem\Filesystem()),
1212
realpath(__DIR__ . '/../..')
1313
);
1414

1515
$application = new Application();
16-
$application->add($compileCommand);
17-
$application->setDefaultCommand($compileCommand->getName(), true);
16+
$application->add($prepareCommand);
17+
$application->setDefaultCommand($prepareCommand->getName(), true);
1818
$application->run();

compiler/src/Console/CompileCommand.php renamed to compiler/src/Console/PrepareCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
use const JSON_PRETTY_PRINT;
3131
use const JSON_UNESCAPED_SLASHES;
3232

33-
final class CompileCommand extends Command
33+
final class PrepareCommand extends Command
3434
{
3535

3636
public function __construct(
@@ -43,8 +43,8 @@ public function __construct(
4343

4444
protected function configure(): void
4545
{
46-
$this->setName('phpstan:compile')
47-
->setDescription('Compile PHAR');
46+
$this->setName('prepare')
47+
->setDescription('Prepare PHAR');
4848
}
4949

5050
protected function execute(InputInterface $input, OutputInterface $output): int

0 commit comments

Comments
 (0)