Skip to content

php think swoole模式下无法使用 #36

@love-dj

Description

@love-dj

return [
'inject' => [
'enable' => true,
'namespaces' => [],
],
'route' => [
'enable' => true,
'cache' => !extension_loaded('swoole'), // Swoole环境下禁用缓存
'controllers' => [
app_path('controller/api') => [
'name' => 'api',
'middleware' => [],
],
],
],
'model' => [
'enable' => true,
],
'ignore' => [],
];配置如下 实际http://localhost:9501/api/index/index 请求的是app\controller目录的index.php 我需要的是请求app\controller\api\index.php,无法正常使用希望修复问题。非swoole模式下正常

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions