2016-01-08 09:00:07 -06:00
|
|
|
<?php
|
2016-02-05 05:08:25 -06:00
|
|
|
declare(strict_types = 1);
|
2016-01-08 09:00:07 -06:00
|
|
|
|
|
|
|
namespace FireflyIII\Providers;
|
|
|
|
|
|
|
|
use Illuminate\Contracts\Auth\Access\Gate as GateContract;
|
|
|
|
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
|
|
|
|
|
2016-01-09 01:20:55 -06:00
|
|
|
/**
|
|
|
|
* Class AuthServiceProvider
|
|
|
|
*
|
|
|
|
* @package FireflyIII\Providers
|
|
|
|
*/
|
2016-01-08 09:00:07 -06:00
|
|
|
class AuthServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The policy mappings for the application.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
2016-01-15 16:12:52 -06:00
|
|
|
protected $policies
|
|
|
|
= [
|
|
|
|
'FireflyIII\Model' => 'FireflyIII\Policies\ModelPolicy',
|
|
|
|
];
|
2016-01-08 09:00:07 -06:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Register any application authentication / authorization services.
|
|
|
|
*
|
2016-01-15 16:12:52 -06:00
|
|
|
* @param \Illuminate\Contracts\Auth\Access\Gate $gate
|
|
|
|
*
|
2016-01-08 09:00:07 -06:00
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot(GateContract $gate)
|
|
|
|
{
|
|
|
|
$this->registerPolicies($gate);
|
|
|
|
|
|
|
|
//
|
|
|
|
}
|
|
|
|
}
|