Adds a console tool for phpMyAdmin using the symfony/console component and moves the advisor2po script to the the console tool. Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
20 lines
455 B
PHP
Executable File
20 lines
455 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
|
|
use PhpMyAdmin\Command\AdvisoryRulesCommand;
|
|
use Symfony\Component\Console\Application;
|
|
|
|
if (! defined('ROOT_PATH')) {
|
|
define('ROOT_PATH', dirname(__DIR__) . DIRECTORY_SEPARATOR);
|
|
}
|
|
|
|
define('PHPMYADMIN', true);
|
|
require_once ROOT_PATH . 'libraries/vendor_config.php';
|
|
require_once AUTOLOAD_FILE;
|
|
|
|
$application = new Application('phpMyAdmin Console Tool');
|
|
|
|
$application->add(new AdvisoryRulesCommand());
|
|
|
|
$application->run();
|