#!/usr/bin/env php
<?php

use Jane\Component\JsonSchema\Application;

if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
    require_once(__DIR__ . '/../vendor/autoload.php');
} elseif (file_exists(__DIR__ . '/../../vendor/autoload.php')) {
    require_once(__DIR__ . '/../../vendor/autoload.php');
} elseif (file_exists(__DIR__ . '/../../../vendor/autoload.php')) {
    require_once(__DIR__ . '/../../../vendor/autoload.php');
} elseif (file_exists(__DIR__ . '/../../../../vendor/autoload.php')) {
    require_once(__DIR__ . '/../../../../vendor/autoload.php');
} elseif (file_exists(__DIR__ . '/../../../../../../vendor/autoload.php')) {
    require_once(__DIR__ . '/../../../../../../vendor/autoload.php');
} else {
    throw new \Exception('Unable to load autoloader');
}

$application = new Application();

return $application->run();
