Skip to content

Commit

Permalink
Fixed docroot and router paths to support spaces (#163)
Browse files Browse the repository at this point in the history
* Fixed docroot and router paths to support spaces

* Fixed Psalm error
  • Loading branch information
davidbyoung committed Oct 9, 2021
1 parent 495f233 commit 44d6e9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Framework/src/Console/Commands/ServeCommandHandler.php
Expand Up @@ -36,8 +36,8 @@ public function handle(Input $input, IOutput $output)
PHP_BINARY,
$domain,
$port,
(string)$input->options['docroot'],
(string)$input->options['router']
'"' . (string)$input->options['docroot'] . '"',
'"' . (string)$input->options['router'] . '"'
);
$this->runPhpCommand($command);
}
Expand Down
Expand Up @@ -44,6 +44,6 @@ protected function runPhpCommand(string $command): void
}
};
$handler->handle($input, $output);
$this->assertSame(PHP_BINARY . ' -S localhost.app:443 -t public router', $handler->ranCommand);
$this->assertSame(PHP_BINARY . ' -S localhost.app:443 -t "public" "router"', $handler->ranCommand);
}
}

0 comments on commit 44d6e9a

Please sign in to comment.