Skip to content

Request $request can not be pass it as variable #1

@manunoly

Description

@manunoly

Hello @saeedvaziry nice package, this can be the missing piece that PHP is needing,

if I pass any variable is working fine
AsyncHandler::dispatch(function () use ($user) { logger('test'); });

but if you pass the $request object to AsyncHandler::dispatch fn, I always get a 500 error, it's the expected behave or I'm missing something,

AsyncHandler::dispatch(function () use ($request) { logger('test'); });
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions