[icinga-checkins] icinga.org: icingaweb2/feature/redesign-7144: Add our vendor path to the include path

git at icinga.org git at icinga.org
Thu Nov 13 21:23:06 CET 2014


Module: icingaweb2
Branch: feature/redesign-7144
Commit: 48a468b888a48a04501f39ce42ee60931fb7f3a8
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=48a468b888a48a04501f39ce42ee60931fb7f3a8

Author: Eric Lippmann <eric.lippmann at netways.de>
Date:   Thu Nov 13 19:52:28 2014 +0100

Add our vendor path to the include path

---

 library/Icinga/Application/ApplicationBootstrap.php |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/library/Icinga/Application/ApplicationBootstrap.php b/library/Icinga/Application/ApplicationBootstrap.php
index 93b89bf..b61a3e3 100644
--- a/library/Icinga/Application/ApplicationBootstrap.php
+++ b/library/Icinga/Application/ApplicationBootstrap.php
@@ -141,6 +141,13 @@ abstract class ApplicationBootstrap
         $this->setupAutoloader();
         $this->setupZendAutoloader();
 
+        set_include_path(
+            implode(
+                PATH_SEPARATOR,
+                array($this->vendorDir, get_include_path())
+            )
+        );
+
         Benchmark::measure('Bootstrap, autoloader registered');
 
         Icinga::setApp($this);



More information about the icinga-checkins mailing list