Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bean::SESSION Scope for definition is not undefined #1476

Open
imzyf opened this issue Mar 30, 2022 · 0 comments
Open

Bean::SESSION Scope for definition is not undefined #1476

imzyf opened this issue Mar 30, 2022 · 0 comments

Comments

@imzyf
Copy link

imzyf commented Mar 30, 2022

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 有什么区别

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant