Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Merge 5624b6a into ea4d9f3
Browse files Browse the repository at this point in the history
  • Loading branch information
michalbundyra committed Apr 11, 2018
2 parents ea4d9f3 + 5624b6a commit 5b3b47a
Show file tree
Hide file tree
Showing 10 changed files with 226 additions and 355 deletions.
19 changes: 13 additions & 6 deletions README.md
Expand Up @@ -32,12 +32,14 @@ $factory = new ContainerFactory();
$container = $factory(
new Config([
'dependencies' => [
'services' => [],
'invokables' => [],
'factories' => [],
'aliases' => [],
'delegators' => [],
'extensions' => [],
'services' => [],
'invokables' => [],
'factories' => [],
'aliases' => [],
'delegators' => [],
'extensions' => [],
'shared' => [],
'shared_by_default' => true,
],
// ... other configuration
])
Expand All @@ -62,6 +64,11 @@ The `dependencies` sub associative array can contain the following keys:
for more details.
- `extensions`: an associative array that maps service names to lists of
extension factory names, see the [the section below](#extensions).
- `shared`: associative array that map a service name to a boolean, in order to
indicate the service manager if it should cache or not a service created
through the get method, independant of the shared_by_default setting.
- `shared_by_default`: boolean that indicates whether services created through
the `get` method should be cached. This is `true` by default.

> Please note, that the whole configuration is available in the `$container`
> on `config` key:
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Expand Up @@ -22,8 +22,9 @@
"pimple/pimple": "^3.2.2"
},
"require-dev": {
"phpunit/phpunit": "^7.0.2",
"zendframework/zend-coding-standard": "~1.0.0"
"phpunit/phpunit": "^7.1.2",
"zendframework/zend-coding-standard": "~1.0.0",
"zendframework/zend-container-config-test": "^0.2 || ^1.0"
},
"autoload": {
"psr-4": {
Expand Down
97 changes: 76 additions & 21 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5b3b47a

Please sign in to comment.