Skip to content

Commit

Permalink
multiple inherited files ini format
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikbjorn committed Jul 29, 2014
1 parent 3563c7a commit 356a9c2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 0 additions & 4 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,6 @@ it would look something like:
- another.yaml
- third.ini
.. note::

``IniFileLoader`` does only support inheriting a single file, this is a limitation of the ini format.

Replacing Values
~~~~~~~~~~~~~~~~

Expand Down
1 change: 1 addition & 0 deletions spec/Tacker/Fixtures/ini/config2.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
multiple = 1
2 changes: 2 additions & 0 deletions spec/Tacker/Fixtures/ini/multiple_inherited.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import[] = "config.ini"
@import[] = "config2.ini"
8 changes: 8 additions & 0 deletions spec/Tacker/Loader/IniFileLoaderSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,12 @@ function it_supports_inherited_configs()
'hello' => 'world',
));
}

function it_supports_multiple_inherited_configs()
{
$this->load('multiple_inherited.ini')->shouldReturn(array(
"hello" => "world",
"multiple" => "1",
));
}
}

0 comments on commit 356a9c2

Please sign in to comment.