]> git.immae.eu Git - github/shaarli/Shaarli.git/blob - application/config/ConfigIO.php
3efe5b6fb941b2dafb7107cea11cb59f1bcb59e6
[github/shaarli/Shaarli.git] / application / config / ConfigIO.php
1 <?php
2 namespace Shaarli\Config;
3
4 /**
5 * Interface ConfigIO
6 *
7 * This describes how Config types should store their configuration.
8 */
9 interface ConfigIO
10 {
11 /**
12 * Read configuration.
13 *
14 * @param string $filepath Config file absolute path.
15 *
16 * @return array All configuration in an array.
17 */
18 public function read($filepath);
19
20 /**
21 * Write configuration.
22 *
23 * @param string $filepath Config file absolute path.
24 * @param array $conf All configuration in an array.
25 */
26 public function write($filepath, $conf);
27
28 /**
29 * Get config file extension according to config type.
30 *
31 * @return string Config file extension.
32 */
33 public function getExtension();
34 }