summaryrefslogtreecommitdiffstats
path: root/library/Icinga/Util/ConfigAwareFactory.php
blob: 133887adcc1162af606362a80e8fe671f72df983 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
/* Icinga Web 2 | (c) 2013 Icinga Development Team | GPLv2+ */

namespace Icinga\Util;

/**
 * Interface defining a factory which is configured at runtime
 */
interface ConfigAwareFactory
{
    /**
     * Set the factory's config
     *
     * @param   mixed   $config
     * @throws  \Icinga\Exception\ConfigurationError if the given config is not valid
     */
    public static function setConfig($config);
}