File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 48
48
49
49
- name : " Prepare for PHAR compilation"
50
50
working-directory : " compiler"
51
- run : " php bin/compile "
51
+ run : " php bin/prepare "
52
52
53
53
- name : " Compile PHAR"
54
54
working-directory : " compiler/build"
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env php
2
2
<?php declare (strict_types = 1 );
3
3
4
- use PHPStan \Compiler \Console \CompileCommand ;
4
+ use PHPStan \Compiler \Console \PrepareCommand ;
5
5
use PHPStan \Compiler \Filesystem \SymfonyFilesystem ;
6
6
use Symfony \Component \Console \Application ;
7
7
8
8
require_once __DIR__ . '/../vendor/autoload.php ' ;
9
9
10
- $ compileCommand = new CompileCommand (
10
+ $ prepareCommand = new PrepareCommand (
11
11
new SymfonyFilesystem (new \Symfony \Component \Filesystem \Filesystem ()),
12
12
realpath (__DIR__ . '/../.. ' )
13
13
);
14
14
15
15
$ application = new Application ();
16
- $ application ->add ($ compileCommand );
17
- $ application ->setDefaultCommand ($ compileCommand ->getName (), true );
16
+ $ application ->add ($ prepareCommand );
17
+ $ application ->setDefaultCommand ($ prepareCommand ->getName (), true );
18
18
$ application ->run ();
Original file line number Diff line number Diff line change 30
30
use const JSON_PRETTY_PRINT ;
31
31
use const JSON_UNESCAPED_SLASHES ;
32
32
33
- final class CompileCommand extends Command
33
+ final class PrepareCommand extends Command
34
34
{
35
35
36
36
public function __construct (
@@ -43,8 +43,8 @@ public function __construct(
43
43
44
44
protected function configure (): void
45
45
{
46
- $ this ->setName ('phpstan:compile ' )
47
- ->setDescription ('Compile PHAR ' );
46
+ $ this ->setName ('prepare ' )
47
+ ->setDescription ('Prepare PHAR ' );
48
48
}
49
49
50
50
protected function execute (InputInterface $ input , OutputInterface $ output ): int
You can’t perform that action at this time.
0 commit comments