Files
pterodactyl-panel/app/Providers/AuthServiceProvider.php
T

28 lines
610 B
PHP
Raw Normal View History

2015-12-06 13:58:49 -05:00
<?php
namespace Pterodactyl\Providers;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider
{
/**
* The policy mappings for the application.
*
* @var array
*/
protected $policies = [
2016-12-07 22:46:38 +00:00
'Pterodactyl\Models\Server' => 'Pterodactyl\Policies\ServerPolicy',
2015-12-06 13:58:49 -05:00
];
/**
* Register any application authentication / authorization services.
*
2017-08-21 22:10:48 -05:00
* @param \Illuminate\Contracts\Auth\Access\Gate $gate
2015-12-06 13:58:49 -05:00
*/
2017-04-01 17:59:43 -04:00
public function boot()
2015-12-06 13:58:49 -05:00
{
2017-04-01 17:59:43 -04:00
$this->registerPolicies();
2015-12-06 13:58:49 -05:00
}
}