Skip to content

Commit 4589ffd

Browse files
committed
Removed support for PHP 8.1
Updated readme.md with the most important changes since version 5.0 Allowed psr/container version 1.x Added security.md Signed-off-by: alexmerlin <alex.merlin.1985@gmail.com>
1 parent ab21fe5 commit 4589ffd

8 files changed

Lines changed: 51 additions & 7 deletions

File tree

.github/workflows/codecov.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
- ubuntu-latest
1616

1717
php:
18-
- "8.1"
1918
- "8.2"
2019
- "8.3"
2120

.github/workflows/cs-tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
- ubuntu-latest
1616

1717
php:
18-
- "8.1"
1918
- "8.2"
2019
- "8.3"
2120

.github/workflows/static-analysis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
- ubuntu-latest
1616

1717
php:
18-
- "8.1"
1918
- "8.2"
2019
- "8.3"
2120

.github/workflows/unit-test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
- ubuntu-latest
1616

1717
php:
18-
- "8.1"
1918
- "8.2"
2019
- "8.3"
2120

OSSMETADATA

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
osslifecycle=active
1+
osslifecycle=active

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,10 @@ class ExampleRepository extends EntityRepository
110110
{
111111
}
112112
```
113+
114+
### NOTE
115+
Starting from version `5.0` of `dot-annotated-services`:
116+
- services can only be injected using the `#[Inject]` attribute (`@Inject` and `@Service` annotations are no longer supported)
117+
- repository-entity relation can only be established using the `#[Entity]` attribute (`@Entity` annotation is no longer supported)
118+
- dependencies injected via the`#[Entity]`/`#[Inject]` attributes are not cached
119+
- injecting dependencies into property setters is no longer supported

SECURITY.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
6+
| Version | Supported | PHP Version |
7+
|---------|--------------------|------------------------------------------------------------------------------------------------------------------------|
8+
| 5.x | :white_check_mark: | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-annotated-services/5.0.0) |
9+
| 4.x | :white_check_mark: | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-annotated-services/4.0.0) |
10+
| <= 3.x | :x: | |
11+
12+
13+
## Reporting Potential Security Issues
14+
15+
If you have encountered a potential security vulnerability in this project,
16+
please report it to us at <security@dotkernel.com>. We will work with you to
17+
verify the vulnerability and patch it.
18+
19+
When reporting issues, please provide the following information:
20+
21+
- Component(s) affected
22+
- A description indicating how to reproduce the issue
23+
- A summary of the security vulnerability and impact
24+
25+
We request that you contact us via the email address above and give the
26+
project contributors a chance to resolve the vulnerability and issue a new
27+
release prior to any public exposure; this helps protect the project's
28+
users, and provides them with a chance to upgrade and/or update in order to
29+
protect their applications.
30+
31+
32+
## Policy
33+
34+
If we verify a reported security vulnerability, our policy is:
35+
36+
- We will patch the current release branch, as well as the immediate prior minor
37+
release branch.
38+
39+
- After patching the release branches, we will immediately issue new security
40+
fix releases for each patched release branch.
41+

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
"service"
2121
],
2222
"require": {
23-
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
23+
"php": "~8.2.0 || ~8.3.0",
2424
"doctrine/orm": "^2.0 || ^3.0",
25-
"psr/container": "^2.0"
25+
"psr/container": "^1.0 || ^2.0"
2626
},
2727
"require-dev": {
2828
"phpunit/phpunit": "^10.5",

0 commit comments

Comments
 (0)