Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
php:
- "8.2"
- "8.3"
- "8.4"

steps:
- name: Checkout
Expand Down
3 changes: 0 additions & 3 deletions .laminas-ci.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"ignore_php_platform_requirements": {
"8.4": true
},
"backwardCompatibilityCheck": true
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This package can clean up your code, by getting rid of all the factories you wri
dependency or two.

![OSS Lifecycle](https://img.shields.io/osslifecycle/dotkernel/dot-dependency-injection)
![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-dependency-injection/1.1.0)
![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-dependency-injection/1.1.1)

[![GitHub issues](https://img.shields.io/github/issues/dotkernel/dot-dependency-injection)](https://github.com/dotkernel/dot-dependency-injection/issues)
[![GitHub forks](https://img.shields.io/github/forks/dotkernel/dot-dependency-injection)](https://github.com/dotkernel/dot-dependency-injection/network)
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
"psr/container": "^1.0 || ^2.0"
},
"require-dev": {
"laminas/laminas-coding-standard": "^3.0",
"phpunit/phpunit": "^10.5",
"vimeo/psalm": "^5.20",
"laminas/laminas-coding-standard": "^3.0"
"vimeo/psalm": "^6.0"
},
"autoload": {
"psr-4": {
Expand Down
6 changes: 2 additions & 4 deletions docs/book/v1/factories/repository.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

## Prepare repository

`dot-dependency-injection` determines the entity a repository is related to by looking at the `#[Entity]` attribute,
added to the repository class.
`dot-dependency-injection` determines the entity a repository is related to by looking at the `#[Entity]` attribute, added to the repository class.

```php
<?php
Expand All @@ -24,8 +23,7 @@ Each entity repository must extend `Doctrine\ORM\EntityRepository`.

Open the ConfigProvider of the module where your repository resides.

Add a new entry under `factories`, where the key is your repository FQCN and the value
is `Dot\DependencyInjection\Factory\AttributedRepositoryFactory::class`.
Add a new entry under `factories`, where the key is your repository FQCN and the value is `Dot\DependencyInjection\Factory\AttributedRepositoryFactory::class`.

See below example for a better understanding of the file structure.

Expand Down
8 changes: 3 additions & 5 deletions docs/book/v1/factories/service.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

## Prepare class

`dot-dependency-injection` determines the dependencies by looking at the `#[Inject]` attribute, added to the
constructor of a class.
Dependencies are specified as separate parameters of the #[Inject] attribute.
`dot-dependency-injection` determines the dependencies by looking at the `#[Inject]` attribute, added to the constructor of a class.
Dependencies are specified as separate parameters of the `#[Inject]` attribute.

```php
<?php
Expand Down Expand Up @@ -49,8 +48,7 @@ If your class needs the value of a specific configuration key, you can specify t

Open the ConfigProvider of the module where your class resides.

Add a new entry under `factories`, where the key is your class FQCN and the value
is `Dot\DependencyInjection\Factory\AttributedServiceFactory::class`.
Add a new entry under `factories`, where the key is your class FQCN and the value is `Dot\DependencyInjection\Factory\AttributedServiceFactory::class`.

See below example for a better understanding of the file structure.

Expand Down
Loading