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

19 lines
585 B
PHP
Raw Normal View History

2018-01-10 17:39:00 +00:00
<?php
2018-01-10 23:52:22 +00:00
use Opdavies\GmailFilterBuilder\Console\Command\GenerateCommand;
2018-01-10 17:39:00 +00:00
use Opdavies\GmailFilterBuilder\Container\Container;
use Symfony\Component\Console\Application;
2018-02-13 02:38:29 +00:00
if (file_exists(__DIR__.'/../vendor/autoload.php')) {
require_once __DIR__.'/../vendor/autoload.php';
2018-03-20 20:34:27 +00:00
} elseif (file_exists(__DIR__.'/../../../autoload.php')) {
2018-02-13 02:38:29 +00:00
require_once __DIR__.'/../../../autoload.php';
}
2018-01-10 17:39:00 +00:00
$container = new Container();
/** @var Application $application */
2019-04-18 20:27:51 +00:00
$application = $container->get(Application::class);
2018-01-10 23:52:22 +00:00
$application->setDefaultCommand(GenerateCommand::NAME);
2018-01-10 17:39:00 +00:00
$application->run();