primitivesense/laravel-raw-sqs-connector

View on GitHub
src/RawSqsServiceProvider.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace PrimitiveSense\LaravelRawSqsConnector;

use Illuminate\Queue\QueueManager;
use Illuminate\Support\ServiceProvider;

class RawSqsServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        /**
         * @var $queueManager QueueManager
         */
        $queueManager = $this->app->make(QueueManager::class);

        $queueManager->addConnector(RawSqsConnector::QUEUE_CONNECTOR_NAME, function () {
            return new RawSqsConnector;
        });
    }

    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
    }
}