swoft icon indicating copy to clipboard operation
swoft copied to clipboard

Bean::SESSION Scope for definition is not undefined

Open imzyf opened this issue 2 years ago • 0 comments

Q A
Bug report? yes
Feature request? no
Swoft version 2.0.11
Swoole version 4.8.6
PHP version 7.4
Runtime environment Mac

Describe the bug

in bean.php

    'myBean' => [
        'class' => MyBean::class,
        '__option' => [
            'scope' => Bean::SESSION,
        ],
    ],

InvalidArgumentException(code:0) Scope for definition is not undefined

image

看起来像这里缺少了 Bean::SESSION

同时想问 Bean::SESSION 与 Bean::REQUEST 有什么区别

imzyf avatar Mar 30 '22 08:03 imzyf