Skip to content

Commit

Permalink
Support built-in PHP server
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj committed Apr 16, 2015
1 parent 729490d commit e5e4ac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Application.php
Expand Up @@ -1340,7 +1340,7 @@ public function basePath($path = null)
return $this->basePath.($path ? '/'.$path : $path);
}

if ($this->runningInConsole()) {
if ($this->runningInConsole() || php_sapi_name() === 'cli-server') {
$this->basePath = getcwd();
} else {
$this->basePath = realpath(getcwd().'/../');
Expand Down

0 comments on commit e5e4ac6

Please sign in to comment.