2016-01-08 09:00:07 -06:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace FireflyIII\Providers;
|
|
|
|
|
2017-09-09 15:06:13 -05:00
|
|
|
use Illuminate\Support\Facades\Gate;
|
2016-01-08 09:00:07 -06:00
|
|
|
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
|
|
|
|
|
|
|
|
class AuthServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The policy mappings for the application.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
2017-09-09 15:06:13 -05:00
|
|
|
protected $policies = [
|
|
|
|
'FireflyIII\Model' => 'FireflyIII\Policies\ModelPolicy',
|
|
|
|
];
|
2016-01-08 09:00:07 -06:00
|
|
|
|
|
|
|
/**
|
2016-09-15 23:48:38 -05:00
|
|
|
* Register any authentication / authorization services.
|
2016-01-15 16:12:52 -06:00
|
|
|
*
|
2016-01-08 09:00:07 -06:00
|
|
|
* @return void
|
|
|
|
*/
|
2016-09-15 23:48:38 -05:00
|
|
|
public function boot()
|
2016-01-08 09:00:07 -06:00
|
|
|
{
|
2016-09-15 23:48:38 -05:00
|
|
|
$this->registerPolicies();
|
2016-01-08 09:00:07 -06:00
|
|
|
|
|
|
|
//
|
|
|
|
}
|
|
|
|
}
|