#!/usr/bin/env php
<?php
error_reporting(0);
$files = array(
  __DIR__ . '/../../vendor/autoload.php',
  __DIR__ . '/../../../../autoload.php',
  __DIR__ . '/../../../autoload.php',
  '../vendor/autoload.php',
  'vendor/autoload.php',  
);
foreach ($files as $file) {
    if (file_exists($file)) {
        require $file;
        define('NOIP_COMPOSER_INSTALL', $file);
        break;
    }
}
if (!defined('NOIP_COMPOSER_INSTALL')) {
    /*die(
      'You need to set up the project dependencies using the following commands:' . PHP_EOL .
      'curl -s http://getcomposer.org/installer | php' . PHP_EOL .
      'php composer.phar install' . PHP_EOL
    );
    */
}
use Buonzz\NoIP\Commands\UpdateCommand;
use Symfony\Component\Console\Application;

$application = new Application("Buonzz NoIP Update Client by Darwin Biler", "v1.0");
$application->add(new UpdateCommand);
$application->run();