Submit
Path:
~
/
/
usr
/
local
/
psa
/
admin
/
plib
/
modules
/
wp-toolkit
/
vendor
/
robmorgan
/
phinx
/
src
/
Phinx
/
Console
/
File Content:
PhinxApplication.php
<?php /** * MIT License * For full license information, please view the LICENSE file that was distributed with this source code. */ namespace WPToolkitDependenciesIsolationPrefix\Phinx\Console; use WPToolkitDependenciesIsolationPrefix\Phinx\Console\Command\Breakpoint; use WPToolkitDependenciesIsolationPrefix\Phinx\Console\Command\Create; use WPToolkitDependenciesIsolationPrefix\Phinx\Console\Command\Init; use WPToolkitDependenciesIsolationPrefix\Phinx\Console\Command\ListAliases; use WPToolkitDependenciesIsolationPrefix\Phinx\Console\Command\Migrate; use WPToolkitDependenciesIsolationPrefix\Phinx\Console\Command\Rollback; use WPToolkitDependenciesIsolationPrefix\Phinx\Console\Command\SeedCreate; use WPToolkitDependenciesIsolationPrefix\Phinx\Console\Command\SeedRun; use WPToolkitDependenciesIsolationPrefix\Phinx\Console\Command\Status; use WPToolkitDependenciesIsolationPrefix\Phinx\Console\Command\Test; use WPToolkitDependenciesIsolationPrefix\Symfony\Component\Console\Application; use WPToolkitDependenciesIsolationPrefix\Symfony\Component\Console\Input\InputInterface; use WPToolkitDependenciesIsolationPrefix\Symfony\Component\Console\Output\OutputInterface; /** * Phinx console application. * * @author Rob Morgan <robbym@gmail.com> */ class PhinxApplication extends Application { /** * Initialize the Phinx console application. */ public function __construct() { parent::__construct('Phinx by CakePHP - https://phinx.org.'); $this->addCommands([new Init(), new Create(), new Migrate(), new Rollback(), new Status(), new Breakpoint(), new Test(), new SeedCreate(), new SeedRun(), new ListAliases()]); } /** * Runs the current application. * * @param \Symfony\Component\Console\Input\InputInterface $input An Input instance * @param \Symfony\Component\Console\Output\OutputInterface $output An Output instance * @return int 0 if everything went fine, or an error code */ public function doRun(InputInterface $input, OutputInterface $output) : int { // always show the version information except when the user invokes the help // command as that already does it if ($input->hasParameterOption('--no-info') === \false) { if ($input->hasParameterOption(['--help', '-h']) !== \false || $input->getFirstArgument() !== null && $input->getFirstArgument() !== 'list') { $output->writeln($this->getLongVersion()); $output->writeln(''); } } return parent::doRun($input, $output); } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
Command
---
0755
PhinxApplication.php
2585 bytes
0644
N4ST4R_ID | Naxtarrr