Skip to content
This repository was archived by the owner on Aug 27, 2024. It is now read-only.

Commit 5912cb6

Browse files
committed
Fix default transformer registration - BaseTransformer
1 parent c37a895 commit 5912cb6

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGES.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changes History
22

3+
4.0.2
4+
-----
5+
Fix default transformer registration - BaseTransformer is used
6+
37
4.0.1
48
-----
59
Remove custom router and resolvers

src/ControllersServiceProvider.php

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
namespace Saritasa\LaravelControllers;
44

55
use Illuminate\Support\ServiceProvider;
6+
use Saritasa\LaravelControllers\Api\BaseApiController;
7+
use Saritasa\Transformers\IDataTransformer;
68

79
/**
810
* Controllers service provider.
@@ -18,5 +20,6 @@ public function boot(): void
1820
{
1921
$this->loadTranslationsFrom(__DIR__ . '/../resources/lang', 'controllers');
2022
$this->loadViewsFrom(__DIR__ . '/../resources/views', 'controllers');
23+
$this->app->bindIf(IDataTransformer::class, BaseApiController::class);
2124
}
2225
}

0 commit comments

Comments
 (0)