Skip to content

Commit

Permalink
修正build指令
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Oct 23, 2019
1 parent 6ca23bf commit dec89d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command/Build.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ protected function buildHello(string $app, string $namespace): void
$filename = $this->basePath . ($app ? $app . DIRECTORY_SEPARATOR : '') . 'controller' . DIRECTORY_SEPARATOR . 'Index' . $suffix . '.php';

if (!is_file($filename)) {
$content = file_get_contents(__FILE__ . 'stubs' . DIRECTORY_SEPARATOR . 'controller.stub');
$content = file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . 'stubs' . DIRECTORY_SEPARATOR . 'controller.stub');
$content = str_replace(['{%name%}', '{%app%}', '{%layer%}', '{%suffix%}'], [$app, $namespace, 'controller', $suffix], $content);
$this->checkDirBuild(dirname($filename));

Expand Down

0 comments on commit dec89d4

Please sign in to comment.