Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6ae7f5a721 | |||
| 9775d16db5 | |||
| 03bffb5e5b |
@@ -14,7 +14,7 @@ class CoroutineContext implements ContextInterface
|
||||
*/
|
||||
public static function inCoroutine(): bool
|
||||
{
|
||||
return true;
|
||||
return Coroutine::getCid() > -1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -83,6 +83,9 @@ class Scanner extends Component
|
||||
{
|
||||
try {
|
||||
require_once "$path";
|
||||
if (!isset($_SERVER['PWD'])) {
|
||||
$_SERVER['PWD'] = APP_PATH;
|
||||
}
|
||||
$path = str_replace($_SERVER['PWD'], '', $path);
|
||||
$path = str_replace('.php', '', $path);
|
||||
$this->parseFile($path);
|
||||
|
||||
Reference in New Issue
Block a user