Skip to content

Commit

Permalink
added php and json config
Browse files Browse the repository at this point in the history
  • Loading branch information
gr8abbasi committed Oct 23, 2016
1 parent 61cba76 commit 68d488a
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
},
"require": {
"php":">=5.5",
"container-interop/container-interop": "^1.1"
"container-interop/container-interop": "^1.1",
"mcustiel/php-simple-config": ">=1.2.0"
},
"require-dev":{
"phpunit/phpunit": "4.8.*"
Expand Down
47 changes: 47 additions & 0 deletions tests/DummyServices/jsonServicesConfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"services": [
{
"id": "class-a",
"class": "DummyServices\\ClassA"

},
{
"id": "class-b",
"class": "DummyServices\\ClassB",
"arguments": [
{
"id": "class-a"

}

]

},
{
"id": "class-c",
"class": "DummyServices\\ClassC",
"arguments": [
{
"id": "class-d"

}

]

},
{
"id": "class-d",
"class": "DummyServices\\ClassD",
"arguments": [
{
"id": "class-c"

}

]

}

]

}
19 changes: 19 additions & 0 deletions tests/DummyServices/phpServicesConfig.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

return array(
'class-a' => array(
'class'=>'Tests\\DummyServices\\ClassA',
),
'class-b' => array(
'class'=>'Tests\\DummyServices\\ClassB',
'arguments' => array(
'class-a'
)
),
'class-c' => array(
'class'=>'Tests\\DummyServices\\ClassC',
'arguments' => array(
'class-b'
)
),
);

0 comments on commit 68d488a

Please sign in to comment.