2016-01-08 09:00:07 -06:00
|
|
|
<?php
|
2016-05-20 05:41:23 -05:00
|
|
|
/**
|
|
|
|
* AuthServiceProvider.php
|
|
|
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
|
|
|
*
|
2016-10-04 23:52:15 -05:00
|
|
|
* This software may be modified and distributed under the terms of the
|
|
|
|
* Creative Commons Attribution-ShareAlike 4.0 International License.
|
|
|
|
*
|
|
|
|
* See the LICENSE file for details.
|
2016-05-20 05:41:23 -05:00
|
|
|
*/
|
|
|
|
|
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\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
|
|
|
|
|
|
|
/**
|
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
|
|
|
|
|
|
|
//
|
|
|
|
}
|
|
|
|
}
|