mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-01-22 20:17:31 +00:00
19 lines
585 B
PHP
Executable file
19 lines
585 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::NAME);
|
|
$application->run();
|