summaryrefslogtreecommitdiff
path: root/bin/phpiac
diff options
context:
space:
mode:
Diffstat (limited to 'bin/phpiac')
-rwxr-xr-xbin/phpiac10
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/phpiac b/bin/phpiac
index 3e2b520..21ff26b 100755
--- a/bin/phpiac
+++ b/bin/phpiac
@@ -1,6 +1,12 @@
#!/usr/bin/env php
<?php
-require dirname(__DIR__) . '/vendor/autoload.php';
+$autoloadAsProjectPath = dirname(__DIR__) . '/vendor/autoload.php';
+$autoloadAsDependencyPath = dirname(__DIR__) . '/../../autoload.php';
+if (file_exists($autoloadAsProjectPath)) {
+ require $autoloadAsProjectPath;
+} else {
+ require $autoloadAsDependencyPath;
+}
-\PHPIAC\IAC::getInstance();
+new \PHPIAC\IAC();