File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66
77## [ Unreleased]
88
9+ ## [ 6.2.1] - 2021-11-02
10+ ### Fixed
11+ - Fix looping for old configs. #387 @AbdullahFaqeir , #391 @Hussam3bd @alexstewartja
12+
913## [ 6.2.0] - 2021-10-29
1014### Added
1115- ECS
@@ -667,7 +671,8 @@ The operation is now executed in the transaction and updates the new `refund` fi
667671- Exceptions: AmountInvalid, BalanceIsEmpty.
668672- Models: Transfer, Transaction.
669673
670- [ Unreleased ] : https://github.com/bavix/laravel-wallet/compare/6.2.0...develop
674+ [ Unreleased ] : https://github.com/bavix/laravel-wallet/compare/6.2.1...develop
675+ [ 6.2.1 ] : https://github.com/bavix/laravel-wallet/compare/6.2.0...6.2.1
671676[ 6.2.0 ] : https://github.com/bavix/laravel-wallet/compare/6.1.0...6.2.0
672677[ 6.1.0 ] : https://github.com/bavix/laravel-wallet/compare/6.0.4...6.1.0
673678[ 6.0.4 ] : https://github.com/bavix/laravel-wallet/compare/6.0.3...6.0.4
Original file line number Diff line number Diff line change 44
55namespace Bavix \Wallet \Simple ;
66
7+ use Bavix \Wallet \Interfaces \Mathable ;
78use Bavix \Wallet \Services \MathService ;
89
910/**
1011 * @deprecated
1112 * @see MathService
1213 */
13- class BrickMath extends MathService
14+ class BrickMath extends MathService implements Mathable
1415{
1516}
Original file line number Diff line number Diff line change @@ -128,8 +128,7 @@ private function legacySingleton(): void
128128 $ this ->app ->singleton (Rateable::class, config ('wallet.package.rateable ' , Rate::class));
129129 $ this ->app ->singleton (Storable::class, config ('wallet.package.storable ' , Store::class));
130130
131- $ this ->app ->alias (MathInterface::class, Mathable::class);
132- $ this ->app ->alias (MathInterface::class, BrickMath::class);
131+ $ this ->app ->singleton (Mathable::class, BrickMath::class);
133132
134133 $ this ->app ->singleton (DbService::class, config ('wallet.services.db ' , DbService::class));
135134 $ this ->app ->singleton (LockService::class, config ('wallet.services.lock ' , LockService::class));
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public function testStorable(): void
5656
5757 public function testMathable (): void
5858 {
59- self ::assertEquals ($ this ->getRefId (Mathable::class), $ this ->getRefId (MathInterface ::class));
59+ self ::assertEquals ($ this ->getRefId (Mathable::class), $ this ->getRefId (Mathable ::class));
6060 }
6161
6262 public function testMathInterface (): void
You can’t perform that action at this time.
0 commit comments