You've already forked Php-Template
feat: implement queue system with consumer and message handling
Some checks failed
🧪✨ Tests Workflow / 🛡️ 🔒 Library Audit (push) Successful in 3m15s
🧪✨ Tests Workflow / 📝 ✨ Code Lint (push) Failing after 3m7s
🧪✨ Tests Workflow / 🛡️ 🔒 License Check (push) Successful in 3m28s
🧪✨ Tests Workflow / 🧪 ✨ Database Migrations (push) Successful in 3m47s
🧪✨ Tests Workflow / 🐙 🔍 Code Sniffer (push) Failing after 3m32s
🧪✨ Tests Workflow / 🧪 ✅ Unit Tests (push) Successful in 1m51s
Some checks failed
🧪✨ Tests Workflow / 🛡️ 🔒 Library Audit (push) Successful in 3m15s
🧪✨ Tests Workflow / 📝 ✨ Code Lint (push) Failing after 3m7s
🧪✨ Tests Workflow / 🛡️ 🔒 License Check (push) Successful in 3m28s
🧪✨ Tests Workflow / 🧪 ✨ Database Migrations (push) Successful in 3m47s
🧪✨ Tests Workflow / 🐙 🔍 Code Sniffer (push) Failing after 3m32s
🧪✨ Tests Workflow / 🧪 ✅ Unit Tests (push) Successful in 1m51s
This commit is contained in:
@@ -5,16 +5,14 @@ declare(strict_types=1);
|
||||
namespace Siteworxpro\App\Services\ServiceProviders;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use RoadRunner\Logger\Logger as RRLogger;
|
||||
use Spiral\Goridge\RPC\RPC;
|
||||
use Siteworxpro\App\Log\Logger;
|
||||
|
||||
class LoggerServiceProvider extends ServiceProvider
|
||||
{
|
||||
public function register(): void
|
||||
{
|
||||
$this->app->singleton(RRLogger::class, function () {
|
||||
$rpc = RPC::create('tcp://127.0.0.1:6001');
|
||||
return new RRLogger($rpc);
|
||||
$this->app->singleton(Logger::class, function () {
|
||||
return new Logger();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user