Skip to content

Commit 254a316

Browse files
committed
Refactored codebase by removing interfaces, introducing trait-based replacements, and enhancing test coverage for attribute-driven logic
1 parent 3c56b7d commit 254a316

File tree

83 files changed

+2681
-898
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+2681
-898
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,6 @@ jobs:
9999
php-version: 8.4
100100
tools: infection
101101
- uses: ramsey/composer-install@v3
102-
- run: infection --min-msi=58 --min-covered-msi=69 --threads=4
102+
- run: infection --min-msi=64 --min-covered-msi=70 --threads=4
103103
env:
104104
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
[![codecov](https://codecov.io/gh/SoureCode/DoctrineExtensionBundle/branch/master/graph/badge.svg?token=GBFBVXQYK4)](https://codecov.io/gh/SoureCode/DoctrineExtensionBundle)
88
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2FSoureCode%2FDoctrineExtensionBundle%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/SoureCode/DoctrineExtensionBundle/master)
99

10-
[Documentation](./docs/index.md)
11-
[License](./LICENSE)
10+
- [Documentation](./docs/index.md)
11+
- [License](./LICENSE)
1212

1313
## Installation
1414

composer.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"symfony/intl": "^7.1",
2626
"symfony/security-bundle": "^7.1",
2727
"symfony/security-core": "^7.1",
28-
"symfony/service-contracts": "^3.5"
28+
"symfony/service-contracts": "^3.5",
29+
"symfony/translation": "^7.1"
2930
},
3031
"require-dev": {
3132
"nyholm/symfony-bundle-test": "^3.0",
@@ -46,7 +47,10 @@
4647
},
4748
"autoload-dev": {
4849
"psr-4": {
49-
"App\\": "tests/app/src/",
50+
"App\\": [
51+
"tests/app/src/",
52+
"tests/app_invalid/src/"
53+
],
5054
"SoureCode\\Bundle\\DoctrineExtension\\Tests\\": "tests/"
5155
}
5256
},

docs/timestampable.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ namespace App\Entity;
1414

1515
use Doctrine\ORM\Mapping as ORM;
1616
use SoureCode\Bundle\DoctrineExtension\Contracts\TimestampableInterface;
17-
use SoureCode\Bundle\DoctrineExtension\Traits\TimestampableTrait;
17+
use SoureCode\Bundle\DoctrineExtension\Traits\TimestampAwareTrait;
1818

1919
#[ORM\Entity]
2020
class User implements TimestampableInterface {
21-
use TimestampableTrait;
21+
use TimestampAwareTrait;
2222

2323
#[ORM\Id]
2424
#[ORM\GeneratedValue]

infection.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"source": {
33
"directories": [
44
"src"
5+
],
6+
"excludes": [
7+
"SoureCodeDoctrineExtensionBundle.php",
8+
"/Interface\\.php/"
59
]
610
},
711
"timeout": 10,

0 commit comments

Comments
 (0)