forked from miguel456/rbrecruiter
35 lines
504 B
PHP
35 lines
504 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Providers;
|
||
|
|
||
|
use Illuminate\Support\ServiceProvider;
|
||
|
|
||
|
use App;
|
||
|
|
||
|
class ContextAwareValidatorProvider extends ServiceProvider
|
||
|
{
|
||
|
/**
|
||
|
* Register services.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function register()
|
||
|
{
|
||
|
//
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Bootstrap services.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function boot()
|
||
|
{
|
||
|
App::bind('contextAwareValidator', function(){
|
||
|
|
||
|
return new App\Helpers\ContextAwareValidator();
|
||
|
|
||
|
});
|
||
|
}
|
||
|
}
|