diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/phpiac | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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(); |