<?php

use DrupalVmGenerator\Application;

// Look for and require the autoloader.
$appDir = __DIR__ . '/../';
if (file_exists($appDir . 'vendor/autoload.php')) {
    require_once $appDir . 'vendor/autoload.php';
} elseif (file_exists($appDir . '../autoload.php')) {
    require_once $appDir . '../autoload.php';
}

$app = new Application();

$app->run();

<?php

use DrupalVmGenerator\Application;

if (file_exists(__DIR__ . '/../../../autoload.php')) {
    require __DIR__ . '/../../../autoload.php';
} else {
    require __DIR__ . '/../vendor/autoload.php';
}

$app = new Application();

$app->run();

Fix autoload.php path when installed via Composer
Fix autoload.php path when installed via Composer

Fixes #34
