-
-
Notifications
You must be signed in to change notification settings - Fork 209
Open
Description
Hello everyone!
When I was using the react/http library to start the project in command-line mode, the Log reported this error during initialization.
It doesn't affect the usage of Log, but causes it to fall back to using the emergency channel.
It appears that this code snippet isn't working properly:
class ContextServiceProvider extends ServiceProvider
{
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$this->app->scoped(Repository::class);
$this->app->bind(ContextLogProcessorContract::class, fn () => new ContextLogProcessor());
}
}
I tried manually binding it in AppServiceProvider like this:
$this->app->bind(
ContextLogProcessor::class,
ConcreteContextLogProcessor::class
);
And then it worked normally. I'm not sure if this is an actual issue.
fklee and kohenkatz
Metadata
Metadata
Assignees
Labels
No labels