Skip to content

Commit b11d42c

Browse files
committed
Switch to yielding definition sources
1 parent d308714 commit b11d42c

File tree

5 files changed

+1074
-787
lines changed

5 files changed

+1074
-787
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
[![Total Downloads](https://poser.pugx.org/php-di-definitions/definitions-gatherer/downloads.png)](https://packagist.org/packages/php-di-definitions/definitions-gatherer)
66
[![Code Coverage](https://scrutinizer-ci.com/g/php-di-definitions/definitions-gatherer/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/php-di-definitions/definitions-gatherer/?branch=master)
77
[![License](https://poser.pugx.org/php-di-definitions/definitions-gatherer/license.png)](https://packagist.org/packages/php-di-definitions/definitions-gatherer)
8-
[![PHP 7 ready](http://php7ready.timesplinter.ch/WyriHaximus/reactphp-http-middleware-clear-body/badge.svg)](https://travis-ci.org/WyriHaximus/reactphp-http-middleware-clear-body)
98

109
# Install
1110

@@ -56,17 +55,17 @@ the same format):
5655
use DI\ContainerBuilder;
5756
use PHPDIDefinitions\DefinitionsGatherer;
5857

59-
$definitions = iterator_to_array(DefinitionsGatherer::gather());
58+
6059
$containerBuilder = new ContainerBuilder();
61-
$containerBuilder->addDefinitions($definitions);
60+
$containerBuilder->addDefinitions(...DefinitionsGatherer::gather());
6261
$container = $containerBuilder->build();
6362
```
6463

6564
# License
6665

6766
The MIT License (MIT)
6867

69-
Copyright (c) 2023 Cees-Jan Kiewiet
68+
Copyright (c) 2025 Cees-Jan Kiewiet
7069

7170
Permission is hereby granted, free of charge, to any person obtaining a copy
7271
of this software and associated documentation files (the "Software"), to deal

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
}
1010
],
1111
"require": {
12-
"php": "^8.3",
12+
"php": "^8.4",
1313
"php-di-definitions/dummy": "^1.0",
14-
"wyrihaximus/get-in-packages-composer.jason": "^2"
14+
"php-di/php-di": "^7.1",
15+
"wyrihaximus/get-in-packages-composer.jason": "^2.3.0"
1516
},
1617
"require-dev": {
1718
"wyrihaximus/makefiles": "^0.3.4",
@@ -42,7 +43,7 @@
4243
"wyrihaximus/makefiles": true
4344
},
4445
"platform": {
45-
"php": "8.3.13"
46+
"php": "8.4.13"
4647
},
4748
"sort-packages": true
4849
},

0 commit comments

Comments
 (0)