server/src/app/Providers/AppServiceProvider.php
changeset 1 01a844d292ac
child 2 00e2916104fe
equal deleted inserted replaced
0:279124b91971 1:01a844d292ac
       
     1 <?php namespace App\Providers;
       
     2 
       
     3 use Illuminate\Support\ServiceProvider;
       
     4 
       
     5 class AppServiceProvider extends ServiceProvider {
       
     6 
       
     7 	/**
       
     8 	 * Bootstrap any application services.
       
     9 	 *
       
    10 	 * @return void
       
    11 	 */
       
    12 	public function boot()
       
    13 	{
       
    14 		//
       
    15 	}
       
    16 
       
    17 	/**
       
    18 	 * Register any application services.
       
    19 	 *
       
    20 	 * This service provider is a great spot to register your various container
       
    21 	 * bindings with the application. As you can see, we are registering our
       
    22 	 * "Registrar" implementation here. You can add your own bindings too!
       
    23 	 *
       
    24 	 * @return void
       
    25 	 */
       
    26 	public function register()
       
    27 	{
       
    28 		$this->app->bind(
       
    29 			'Illuminate\Contracts\Auth\Registrar',
       
    30 			'App\Services\Registrar'
       
    31 		);
       
    32 	}
       
    33 
       
    34 }