#!/usr/bin/env php
<?php
namespace UAParser\Command;
use Symfony\Component\Console\Application;
$packageAutoloader = __DIR__ . '/../vendor/autoload.php';
$standaloneAutoloader = __DIR__ . '/../../../autoload.php';
if (file_exists($packageAutoloader)) {
require_once $packageAutoloader;
} else {
require_once $standaloneAutoloader;
}
// Ensure symfony packages installed
if (!class_exists(Application::class)) {
echo 'You must include the symfony packages, see composer.json "suggest" section' . PHP_EOL;
exit(1);
}
$resourceDirectory = realpath(__DIR__ . '/../resources');
$defaultYamlFile = realpath(__DIR__ . '/../resources/regexes.yaml');
$application = new Application('ua-parser');
$application->add(new ConvertCommand($resourceDirectory, $defaultYamlFile));
$application->add(new UpdateCommand($resourceDirectory));
$application->add(new ParserCommand());
$application->add(new LogfileCommand());
$application->add(new FetchCommand($defaultYamlFile));
$application->run();
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]