diff options
| author | Daniel Weipert <code@drogueronin.de> | 2021-04-28 14:48:48 +0200 | 
|---|---|---|
| committer | Daniel Weipert <code@drogueronin.de> | 2021-04-28 14:48:48 +0200 | 
| commit | b3160d7bfd29288fcbfe528e4fd1fcd80864807f (patch) | |
| tree | dda7a95d8a73cc87d18c21a291517f2be9af6a83 /bin/phpiac | |
| parent | 9f0ccee3f967c2cd6cd5cfaea97dc35e1a7bd12a (diff) | |
Diffstat (limited to 'bin/phpiac')
| -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(); | 
