2017-09-03 02:35:33 +00:00
|
|
|
<?php
|
2017-09-26 02:43:01 +00:00
|
|
|
/**
|
2017-09-03 02:35:33 +00:00
|
|
|
* Pterodactyl - Panel
|
|
|
|
* Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com>.
|
|
|
|
*
|
2017-09-26 02:43:01 +00:00
|
|
|
* This software is licensed under the terms of the MIT license.
|
|
|
|
* https://opensource.org/licenses/MIT
|
2017-09-03 02:35:33 +00:00
|
|
|
*/
|
|
|
|
|
2017-09-03 21:32:52 +00:00
|
|
|
namespace Pterodactyl\Providers;
|
2017-09-03 02:35:33 +00:00
|
|
|
|
2017-09-03 21:32:52 +00:00
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
use Pterodactyl\Http\ViewComposers\Server\ServerDataComposer;
|
2017-09-03 02:35:33 +00:00
|
|
|
|
2017-09-03 21:32:52 +00:00
|
|
|
class ViewComposerServiceProvider extends ServiceProvider
|
2017-09-03 02:35:33 +00:00
|
|
|
{
|
|
|
|
/**
|
2017-09-03 21:32:52 +00:00
|
|
|
* Register bindings in the container.
|
2017-09-03 02:35:33 +00:00
|
|
|
*/
|
2017-09-03 21:32:52 +00:00
|
|
|
public function boot()
|
2017-09-03 02:35:33 +00:00
|
|
|
{
|
2017-09-03 21:32:52 +00:00
|
|
|
$this->app->make('view')->composer('server.*', ServerDataComposer::class);
|
2017-09-03 02:35:33 +00:00
|
|
|
}
|
|
|
|
}
|