gmail-filter-builder/bin/generate-filters.php

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();