mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-18 05:58:18 +01:00
35 lines
841 B
PHP
35 lines
841 B
PHP
<?php
|
|
|
|
namespace CachetHQ\Cachet\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class ViewComposerServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Boot the service provider.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Register the service provider.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
$this->app->view->composer('*', 'CachetHQ\Cachet\Composers\LoggedUserComposer');
|
|
$this->app->view->composer('index', 'CachetHQ\Cachet\Composers\IndexComposer');
|
|
$this->app->view->composer('dashboard.*', 'CachetHQ\Cachet\Composers\DashboardComposer');
|
|
$this->app->view->composer([
|
|
'setup',
|
|
'dashboard.settings.app-setup',
|
|
], 'CachetHQ\Cachet\Composers\TimezoneLocaleComposer');
|
|
}
|
|
}
|