From: Andrey Kutejko Date: Sat, 16 Mar 2019 13:23:30 +0000 (+0100) Subject: allow custom providers X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=b20b871e2e3acfd5b75ce01f9a7e3e61f51f4819;p=ipf.git allow custom providers --- diff --git a/ipf/project.php b/ipf/project.php index bb9a787..ddad1f6 100644 --- a/ipf/project.php +++ b/ipf/project.php @@ -82,6 +82,10 @@ final class IPF_Project $this->container->register(new IPF_Cli_Provider()); + foreach ($this->container['settings']->get('providers', array()) as $providerClass) { + $this->container->register(new $providerClass); + } + if (IPF::get('debug')) { error_reporting(E_ALL); }