You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-11Lines changed: 29 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,9 @@
2
2
3
3
> You want to configure your factories?
4
4
5
-
> You want to check automatically for mandatory params?
5
+
> You want to reduce your factory boilerplate code?
6
+
7
+
> You want to check automatically for mandatory options?
6
8
7
9
> You want to have an uniform config structure?
8
10
@@ -24,7 +26,7 @@ and to create configuration files.
24
26
25
27
> Please join the discussion about the [PSR config proposal](https://github.com/php-fig/fig-standards/pull/620).
26
28
27
-
***Well tested.** Besides unit test and continuous integration/inspection this solution is also ~~ready for production use~~.
29
+
***Well tested.** Besides unit test and continuous integration/inspection this solution is also ready for production use.
28
30
***Framework agnostic** This PHP library does not depends on any framework but you can use it with your favourite framework.
29
31
***Every change is tracked**. Want to know whats new? Take a look at [CHANGELOG.md](https://github.com/sandrokeil/interop-config/blob/master/CHANGELOG.md)
30
32
***Listen to your ideas.** Have a great idea? Bring your tested pull request or open a new issue. See [CONTRIBUTING.md](CONTRIBUTING.md)
@@ -65,11 +67,11 @@ the logic to retrieve the options from a configuration. See documentation for mo
65
67
66
68
```php
67
69
use Interop\Config\ConfigurationTrait;
68
-
use Interop\Config\HasMandatoryOptions;
69
-
use Interop\Config\HasContainerId;
70
+
use Interop\Config\RequiresContainerId;
71
+
use Interop\Config\RequiresMandatoryOptions;
70
72
use Interop\Container\ContainerInterface;
71
73
72
-
class MyDBALConnectionFactory implements HasMandatoryOptions, HasContainerId
74
+
class MyDBALConnectionFactory implements RequiresContainerId, RequiresMandatoryOptions
73
75
{
74
76
use ConfigurationTrait;
75
77
@@ -78,7 +80,7 @@ class MyDBALConnectionFactory implements HasMandatoryOptions, HasContainerId
78
80
// get options for doctrine.connection.orm_default
@@ -139,22 +141,38 @@ Put the following into your composer.json
139
141
140
142
{
141
143
"require": {
142
-
"sandrokeil/interop-config": "1.0.x-dev"
144
+
"sandrokeil/interop-config": "^0.3"
143
145
}
144
146
}
145
147
146
148
## Documentation
149
+
For the latest online documentation you can visit [http://sandrokeil.github.io/interop-config/](http://sandrokeil.github.io/interop-config/"Latest interop-config documentation").
147
150
148
151
Documentation is [in the doc tree](doc/), and can be compiled using [bookdown](http://bookdown.io) and [Docker](https://www.docker.com/)
149
152
150
153
```console
151
-
$ docker run -i -t=false --rm -v $(pwd):/app sandrokeil/bookdown doc/bookdown.json
0 commit comments