Skip to content

Commit

Permalink
v2.1.0 Fixes #10 which occurs starting with Kimai 2.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
LiaraAlis committed Feb 2, 2024
1 parent ad5e2f1 commit 2c438b6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Changelog
## 2.1.0
Compatible with Kimai v2.7.0
- Fixes #10 which occurs starting with Kimai 2.7.0

## 2.0.1
Compatible with Kimai v2.0
- Added dutch translation
Expand Down
4 changes: 2 additions & 2 deletions DependencyInjection/Compiler/SmallBusinessDecoratorPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace KimaiPlugin\SmallBusinessRuleBundle\DependencyInjection\Compiler;

use App\Kernel;
use App\Invoice\CalculatorInterface;
use KimaiPlugin\SmallBusinessRuleBundle\Invoice\Calculator\SmallBusinessCalculator;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
Expand All @@ -19,7 +19,7 @@ public function process(ContainerBuilder $container): void
return;
}

$taggedServices = $container->findTaggedServiceIds(Kernel::TAG_INVOICE_CALCULATOR);
$taggedServices = $container->findTaggedServiceIds(CalculatorInterface::class);

foreach ($taggedServices as $id => $tags) {
if ($id === SmallBusinessCalculator::class) {
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ This Kimai plugin provides a function that makes it easy to use the small busine
## Requirements
This plugin is compatible with the following Kimai releases:

| Bundle version | Minimum Kimai version |
|------------------|---------------------|
| 1.0 | 1.24 |
| 2.0 | 2.0 |
| Bundle version | Minimum Kimai version |
|----------------|-----------------------|
| 1.0 | 1.24 |
| 2.0 | 2.0 |
| 2.1.0 | 2.7 |

## Installation
First clone this repository to your Kimai installation `plugins` directory:
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Kimai2 bundle which adds a function for small business regulation as it is possible in Germany and Austria.",
"homepage": "https://www.kimai.org",
"type": "kimai-plugin",
"version": "2.0.1",
"version": "2.1.0",
"require": {
"kimai/kimai2-composer": "*"
},
Expand All @@ -17,7 +17,7 @@
],
"extra": {
"kimai": {
"require": 20000,
"require": 20700,
"name": "SmallBusinessRuleBundle"
}
}
Expand Down

0 comments on commit 2c438b6

Please sign in to comment.