#!/usr/bin/php
<?php

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

use Symfony\Component\Console\Application;
use Alc\LinksChecker\Command;

$application = new Application();

$application->add(new Command\FileCheckCommand());
$application->add(new Command\SitemapCheckCommand());
$application->add(new Command\SeoCheckCommand());
$application->add(new Command\SitemapCrawlCommand());
$application->add(new Command\GeneratorCommand());

$application->run();
