Projekt

Obecné

Profil

Stáhnout (648 Bajtů) Statistiky
| Větev: | Revize:
1
<?php
2

    
3
namespace Illuminate\Hashing;
4

    
5
use Illuminate\Support\ServiceProvider;
6

    
7
class HashServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Indicates if loading of the provider is deferred.
11
     *
12
     * @var bool
13
     */
14
    protected $defer = true;
15

    
16
    /**
17
     * Register the service provider.
18
     *
19
     * @return void
20
     */
21
    public function register()
22
    {
23
        $this->app->singleton('hash', function () {
24
            return new BcryptHasher;
25
        });
26
    }
27

    
28
    /**
29
     * Get the services provided by the provider.
30
     *
31
     * @return array
32
     */
33
    public function provides()
34
    {
35
        return ['hash'];
36
    }
37
}
(2-2/3)