/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/Notifications/NotificationServiceProvider.php
44 строки
1 KB
Milwad
change closure to arrow function in NotificationServiceProvider (#47055)
12 май 2023, 16:34
Не верифицирован
12 май 2023, 16:34
d5f9c4c
Код
Авторство
О чём код?
<?php namespace Illuminate\Notifications; use Illuminate\Contracts\Notifications\Dispatcher as DispatcherContract; use Illuminate\Contracts\Notifications\Factory as FactoryContract; use Illuminate\Support\ServiceProvider; class NotificationServiceProvider extends ServiceProvider { /** * Boot the application services. * * @return void */ public function boot() { $this->loadViewsFrom(__DIR__.'/resources/views', 'notifications'); if ($this->app->runningInConsole()) { $this->publishes([ __DIR__.'/resources/views' => $this->app->resourcePath('views/vendor/notifications'), ], 'laravel-notifications'); } } /** * Register the service provider. * * @return void */ public function register() { $this->app->singleton(ChannelManager::class, fn ($app) => new ChannelManager($app)); $this->app->alias( ChannelManager::class, DispatcherContract::class ); $this->app->alias( ChannelManager::class, FactoryContract::class ); } }