AmqpRouteMessengerServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 22
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 3 1
A boot() 0 5 1
1
<?php
2
3
namespace CmdrSharp\AmqpRouteMessenger;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class AmqpRouteMessengerServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap the application services.
11
     *
12
     * @return void
13
     */
14
    public function boot(): void
15
    {
16
        $this->publishes([
17
            __DIR__ . '/../config.php' => config_path('amqproutemessenger.php'),
18
        ], 'amqproutemessenger-config');
19
    }
20
21
    /**
22
     * Register any application services.;
23
     *
24
     * @return void
25
     */
26
    public function register(): void
27
    {
28
        $this->app->bind(ClientInterface::class, Client::class);
29
    }
30
}
31