1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (https://nette.org)
5: * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
6: */
7:
8: namespace Nette\DI\Config;
9:
10: use Nette;
11:
12:
13: /**
14: * Adapter for reading and writing configuration files.
15: *
16: * @author David Grudl
17: */
18: interface IAdapter
19: {
20:
21: /**
22: * Reads configuration from file.
23: * @param string file name
24: * @return array
25: */
26: function load($file);
27:
28: /**
29: * Generates configuration string.
30: * @return string
31: */
32: function dump(array $data);
33:
34: }
35: