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

require __DIR__ . '/load_autoloader.php';

// @todo licence command

use Symfony\Component\Console\Application;
use QUI\Install\InstallCommand;

if (php_sapi_name() === 'cli') {
    $year = date('Y');

    echo "
  _______          _________ _______  _______  _______  _______
 (  ___  )|\     /|\__   __/(  ___  )(  ___  )(  ____ \(  ____ )
 | (   ) || )   ( |   ) (   | (   ) || (   ) || (    \/| (    )|
 | |   | || |   | |   | |   | |   | || |   | || (__    | (____)|
 | |   | || |   | |   | |   | |   | || |   | ||  __)   |     __)
 | | /\| || |   | |   | |   | | /\| || | /\| || (      | (\ (
 | (_\ \ || (___) |___) (___| (_\ \ || (_\ \ || (____/\| ) \ \__
 (____\/_)(_______)\_______/(____\/_)(____\/_)(_______/|/   \__/

 QUIQQER Copyright(C) $year  PCSG - Computer & Internet Service OHG - www.pcsg.de
 This program comes with ABSOLUTELY NO WARRANTY; for details type `quiqqer-installer.phar licence`.
 This is free software, and you are welcome to redistribute it under certain conditions;
 visit www.quiqqer.com for details.
";
}

$app = new Application('QUIQQER Installer', '1.0');
$app->add(new InstallCommand());
$app->run();
