1 | <?php |
||
8 | class CountryFlagsServiceProvider extends ServiceProvider |
||
9 | { |
||
10 | /** |
||
11 | * Perform post-registration booting of services. |
||
12 | * |
||
13 | * @return void |
||
14 | */ |
||
15 | public function boot() |
||
16 | { |
||
17 | $this->publishes([ |
||
18 | __DIR__.'/../config/country-flags.php' => config_path('country-flags.php'), |
||
19 | ], 'config'); |
||
20 | |||
21 | $this->app->bind(CountryFlag::class, function () { |
||
22 | return new CountryFlag(config('country-flags.aliases')); |
||
23 | }); |
||
24 | |||
25 | $this->app->singleton('country-flag', CountryFlag::class); |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Register bindings in the container. |
||
30 | * |
||
31 | * @return void |
||
32 | */ |
||
33 | public function register() |
||
37 | } |
||
38 |