mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-08 23:24:07 -06:00
28 lines
534 B
PHP
28 lines
534 B
PHP
<?php
|
|
|
|
|
|
namespace FireflyIII\Shared\Validation;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
/**
|
|
* Class ValidationServiceProvider
|
|
*
|
|
* @package FireflyIII\Shared\Validation
|
|
*/
|
|
class ValidationServiceProvider extends ServiceProvider
|
|
{
|
|
public function boot()
|
|
{
|
|
$this->app->validator->resolver(
|
|
function ($translator, $data, $rules, $messages) {
|
|
return new FireflyValidator($translator, $data, $rules, $messages);
|
|
}
|
|
);
|
|
}
|
|
|
|
public function register()
|
|
{
|
|
}
|
|
}
|