Files
faveo/app/Providers/ComposerServiceProvider.php
Shift 9a6f1788a4 Convert string references to ::class
PHP 5.5.9 adds the new static `class` property which provides the fully qualified class name. This is preferred over using strings for class names since the `class` property references are checked by PHP.
2023-01-03 08:25:43 +00:00

65 lines
1.6 KiB
PHP

<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class ComposerServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
$service_desk = '';
// if (isInstall()) {
// if (isPlugin()) {
// $service_desk = 'service::interface.agent.sidebar';
// }
// }
view()->composer(
[
'themes.default1.agent.layout.agent',
'themes.default1.agent.helpdesk.dashboard.dashboard',
'themes.default1.admin.layout.admin',
'themes.default1.admin.helpdesk.setting',
$service_desk,
],
\App\Http\ViewComposers\AgentLayout::class
);
view()->composer(
[
'themes.default1.update.notification',
],
\App\Http\ViewComposers\UpdateNotification::class
);
view()->composer(
[
'themes.default1.agent.layout.agent',
'themes.default1.admin.layout.admin',
],
\App\Http\ViewComposers\AuthUser::class
);
view()->composer(
[
'themes.default1.admin.layout.admin',
'themes.default1.agent.layout.agent',
'themes.default1.client.layout.client',
],
\App\Http\ViewComposers\UserLanguage::class
);
}
/**
* Register the application services.
*
* @return void
*/
public function register()
{
//
}
}