Pony.fm/app/Providers/AppServiceProvider.php

44 lines
794 B
PHP
Raw Normal View History

2015-08-30 13:22:00 +02:00
<?php
namespace App\Providers;
use App;
use Auth;
use Illuminate\Auth\Guard;
2015-08-30 13:22:00 +02:00
use Illuminate\Support\ServiceProvider;
// use PFMAuth;
use PfmValidator;
use Validator;
2015-08-30 13:22:00 +02:00
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
/*
Auth::extend('pfm', function() {
return new Guard(new PFMAuth(), App::make('session.store'));
});
*/
Validator::resolver(function($translator, $data, $rules, $messages)
{
return new PfmValidator($translator, $data, $rules, $messages);
});
2015-08-30 13:22:00 +02:00
}
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
}