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