]> git.andy128k.dev Git - ipf.git/commitdiff
allow custom providers
authorAndrey Kutejko <andy128k@gmail.com>
Sat, 16 Mar 2019 13:23:30 +0000 (14:23 +0100)
committerAndrey Kutejko <andy128k@gmail.com>
Sat, 16 Mar 2019 13:23:30 +0000 (14:23 +0100)
ipf/project.php

index bb9a7878f6b5fb88145b76a654d334af8b5eaf13..ddad1f67fe408ca40b208d5ced89b1a688774e8e 100644 (file)
@@ -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);
         }