mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 22:21:42 +00:00
Expand binder test.
This commit is contained in:
@@ -25,6 +25,7 @@ namespace FireflyIII\Support\Binder;
|
||||
use Carbon\Carbon;
|
||||
use Exception;
|
||||
use FireflyIII\Helpers\FiscalHelper;
|
||||
use FireflyIII\Helpers\FiscalHelperInterface;
|
||||
use Illuminate\Routing\Route;
|
||||
use Log;
|
||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
@@ -42,7 +43,8 @@ class Date implements BinderInterface
|
||||
*/
|
||||
public static function routeBinder(string $value, Route $route): Carbon
|
||||
{
|
||||
$fiscalHelper = new FiscalHelper;
|
||||
/** @var FiscalHelperInterface $fiscalHelper */
|
||||
$fiscalHelper = app(FiscalHelperInterface::class);
|
||||
|
||||
switch ($value) {
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user