/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/Hashing/HashServiceProvider.php
35 строк
747 B
Dries Vints
[6.x] Alpha ordered imports (#29933)
10 сен 2019, 18:16
10 сен 2019, 18:16
1bbe552
Код
Авторство
О чём код?
<?php namespace Illuminate\Hashing; use Illuminate\Contracts\Support\DeferrableProvider; use Illuminate\Support\ServiceProvider; class HashServiceProvider extends ServiceProvider implements DeferrableProvider { /** * Register the service provider. * * @return void */ public function register() { $this->app->singleton('hash', function ($app) { return new HashManager($app); }); $this->app->singleton('hash.driver', function ($app) { return $app['hash']->driver(); }); } /** * Get the services provided by the provider. * * @return array */ public function provides() { return ['hash', 'hash.driver']; } }