Skip to content

Commit e0df5f2

Browse files
committed
fix: base_url()/site_url() does not work on CLI
1 parent 1520f30 commit e0df5f2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

system/HTTP/CLIRequest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ public function __construct(App $config)
7171
ignore_user_abort(true);
7272

7373
$this->parseCommand();
74+
75+
// Set SiteURI for this request
76+
$this->uri = new SiteURI($config, $this->getPath());
7477
}
7578

7679
/**

0 commit comments

Comments
 (0)