2016-02-29 15:59:36 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
|
2016-03-05 00:18:10 +00:00
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
|
|
|
{
|
2016-02-29 15:59:36 +00:00
|
|
|
/**
|
|
|
|
|
* Bootstrap any application services.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
2016-03-05 00:18:10 +00:00
|
|
|
public function boot()
|
|
|
|
|
{
|
2016-02-29 15:59:36 +00:00
|
|
|
require app_path('Attendize/constants.php');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Register any application services.
|
|
|
|
|
*
|
|
|
|
|
* This service provider is a great spot to register your various container
|
|
|
|
|
* bindings with the application. As you can see, we are registering our
|
|
|
|
|
* "Registrar" implementation here. You can add your own bindings too!
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
2016-03-05 00:18:10 +00:00
|
|
|
public function register()
|
|
|
|
|
{
|
2016-02-29 15:59:36 +00:00
|
|
|
$this->app->bind(
|
|
|
|
|
'Illuminate\Contracts\Auth\Registrar', 'App\Services\Registrar'
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|