2015-12-06 18:58:49 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Providers;
|
|
|
|
|
|
|
|
use Illuminate\Contracts\Auth\Access\Gate as GateContract;
|
|
|
|
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 18:58:49 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register any application authentication / authorization services.
|
|
|
|
*
|
|
|
|
* @param \Illuminate\Contracts\Auth\Access\Gate $gate
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot(GateContract $gate)
|
|
|
|
{
|
|
|
|
parent::registerPolicies($gate);
|
|
|
|
}
|
|
|
|
}
|