1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-10-27 20:32:28 +01:00
Pterodactyl-Panel/app/Providers/AuthServiceProvider.php

28 lines
610 B
PHP
Raw Normal View History

<?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 23:46:38 +01:00
'Pterodactyl\Models\Server' => 'Pterodactyl\Policies\ServerPolicy',
];
/**
* Register any application authentication / authorization services.
*
2017-08-22 05:10:48 +02:00
* @param \Illuminate\Contracts\Auth\Access\Gate $gate
*/
2017-04-01 23:59:43 +02:00
public function boot()
{
2017-04-01 23:59:43 +02:00
$this->registerPolicies();
}
}