mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-03 12:47:17 -06:00
52 lines
1.2 KiB
PHP
52 lines
1.2 KiB
PHP
<?php
|
|
|
|
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(
|
|
'preferences', function () {
|
|
return new \FireflyIII\Support\Preferences;
|
|
}
|
|
);
|
|
$this->app->bind(
|
|
'navigation', function () {
|
|
return new \FireflyIII\Support\Navigation;
|
|
}
|
|
);
|
|
$this->app->bind(
|
|
'amount', function () {
|
|
return new \FireflyIII\Support\Amount;
|
|
}
|
|
);
|
|
|
|
$this->app->bind(
|
|
'steam', function () {
|
|
return new \FireflyIII\Support\Steam;
|
|
}
|
|
);
|
|
$this->app->bind(
|
|
'expandedform', function () {
|
|
return new \FireflyIII\Support\ExpandedForm;
|
|
}
|
|
);
|
|
}
|
|
|
|
} |