Skip to content

Commit

Permalink
Linting + added .laminas-ci.json
Browse files Browse the repository at this point in the history
Signed-off-by: alexmerlin <[email protected]>
  • Loading branch information
alexmerlin committed Oct 23, 2024
1 parent 718a2bd commit 733b8e4
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
6 changes: 6 additions & 0 deletions .laminas-ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"ignore_php_platform_requirements": {
"8.4": true
},
"backwardCompatibilityCheck": true
}
2 changes: 0 additions & 2 deletions docs/book/v4/factories/repository.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Inject entity repositories


## Prepare repository

`dot-annotated-services` determines the entity a repository is related to by looking at the `@Entity` annotation, added to the repository class.
Expand All @@ -22,7 +21,6 @@ class ExampleRepository extends Doctrine\ORM\EntityRepository

Each entity repository must extend `Doctrine\ORM\EntityRepository`.


## Register repository

Open the ConfigProvider of the module where your repository resides.
Expand Down
2 changes: 0 additions & 2 deletions docs/book/v4/factories/service.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Inject class dependencies


## Prepare class

`dot-annotated-services` determines the dependencies by looking at the `@Inject` annotation, added to the constructor of a class.
Expand Down Expand Up @@ -49,7 +48,6 @@ If your class needs the value of a specific configuration key, you can specify t
}
```


## Register class

Open the ConfigProvider of the module where your class resides.
Expand Down
2 changes: 0 additions & 2 deletions docs/book/v5/factories/repository.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Inject entity repositories


## Prepare repository

`dot-annotated-services` determines the entity a repository is related to by looking at the `#[Entity]` attribute, added to the repository class.
Expand All @@ -20,7 +19,6 @@ class ExampleRepository extends Doctrine\ORM\EntityRepository

Each entity repository must extend `Doctrine\ORM\EntityRepository`.


## Register repository

Open the ConfigProvider of the module where your repository resides.
Expand Down
2 changes: 0 additions & 2 deletions docs/book/v5/factories/service.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Inject class dependencies


## Prepare class

`dot-annotated-services` determines the dependencies by looking at the `#[Inject]` attribute, added to the constructor of a class.
Expand Down Expand Up @@ -45,7 +44,6 @@ If your class needs the value of a specific configuration key, you can specify t
}
```


## Register class

Open the ConfigProvider of the module where your class resides.
Expand Down
2 changes: 1 addition & 1 deletion docs/book/v5/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
By providing reusable factories for service and repository injection, it reduces code complexity in projects.

> `dot-annotated-services` v5 has been abandoned in favor of [dot-dependency-injection](https://github.com/dotkernel/dot-dependency-injection), which uses PHP attributes instead of annotations.
>
>
> Going forward, if you want to use annotations in your projects, use [dot-annotated-services v4](../v4/overview.md), else use `dot-dependency-injection`.

0 comments on commit 733b8e4

Please sign in to comment.