Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First Commit
- Loading branch information
Showing
505 changed files
with
60,559 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
// autoload.php @generated by Composer | ||
|
||
require_once __DIR__ . '/composer/autoload_real.php'; | ||
|
||
return ComposerAutoloaderInitd899dbdd7b6bab1ecf1afdb8a7711305::getLoader(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/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; | ||
} | ||
|
||
$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(); |
Oops, something went wrong.