blob: e19eee5c133274c711a8ff5b6205d6e58f747c1a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<?php
namespace Intervention\Httpauth;
use Illuminate\Support\ServiceProvider;
class HttpauthServiceProviderLaravel5 extends ServiceProvider
{
/**
* Bootstrap the application events.
*
* @return void
*/
public function boot()
{
$this->publishes(array(
__DIR__.'/../../config/config.php' => config_path('httpauth.php')
));
}
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
// merge default config
$this->mergeConfigFrom(
__DIR__.'/../../config/config.php', 'httpauth'
);
$this->app->singleton('httpauth', function ($app) {
return new Httpauth($app['config']->get('httpauth'));
});
}
}
|