misc_pterodactyl-panel/app/Providers/AuthServiceProvider.php

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