mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Reimplemented forms, added an overdue fix.
This commit is contained in:
@@ -3,9 +3,22 @@
|
||||
namespace FireflyIII\Providers;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Validator;
|
||||
use FireflyIII\Validation\FireflyValidator;
|
||||
|
||||
/**
|
||||
* Class FireflyServiceProvider
|
||||
*
|
||||
* @package FireflyIII\Providers
|
||||
*/
|
||||
class FireflyServiceProvider extends ServiceProvider
|
||||
{
|
||||
public function boot() {
|
||||
Validator::resolver(function($translator, $data, $rules, $messages)
|
||||
{
|
||||
return new FireflyValidator($translator, $data, $rules, $messages);
|
||||
});
|
||||
}
|
||||
public function register()
|
||||
{
|
||||
$this->app->bind(
|
||||
@@ -29,6 +42,11 @@ class FireflyServiceProvider extends ServiceProvider
|
||||
return new \FireflyIII\Support\Steam;
|
||||
}
|
||||
);
|
||||
$this->app->bind(
|
||||
'expandedform', function () {
|
||||
return new \FireflyIII\Support\ExpandedForm;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user