mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-01-23 20:37:33 +00:00
19 lines
597 B
PHP
Executable file
19 lines
597 B
PHP
Executable file
<?php
|
|
|
|
use Opdavies\GmailFilterBuilder\Console\Command\GenerateCommand;
|
|
use Opdavies\GmailFilterBuilder\Container\Container;
|
|
use Symfony\Component\Console\Application;
|
|
|
|
if (file_exists(__DIR__.'/../vendor/autoload.php')) {
|
|
require_once __DIR__.'/../vendor/autoload.php';
|
|
} elseif (file_exists(__DIR__.'/../../../autoload.php')) {
|
|
require_once __DIR__.'/../../../autoload.php';
|
|
}
|
|
|
|
$container = new Container();
|
|
|
|
/** @var Application $application */
|
|
$application = $container->get(Application::class);
|
|
$application->setDefaultCommand(GenerateCommand::getDefaultName());
|
|
$application->run();
|