/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/migrations/src/Command/Phinx
NameSizeModeActions
BaseCommand.php2320644editdlrm
CacheBuild.php19050644editdlrm
CacheClear.php19730644editdlrm
CommandTrait.php37490644editdlrm
Create.php48640644editdlrm
Dump.php40590644editdlrm
MarkMigrated.php76200644editdlrm
Migrate.php33230644editdlrm
Rollback.php33820644editdlrm
Seed.php29290644editdlrm
Status.php50040644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/migrations/src/Command/Phinx/Seed.php (2929B)
setName('seed') ->setDescription('Seed the database with data') ->setHelp('runs all available migrations, optionally up to a specific version') ->addOption( '--seed', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'What is the name of the seeder?' ) ->addOption('--plugin', '-p', InputOption::VALUE_REQUIRED, 'The plugin containing the migrations') ->addOption('--connection', '-c', InputOption::VALUE_REQUIRED, 'The datasource connection to use') ->addOption('--source', '-s', InputOption::VALUE_REQUIRED, 'The folder where migrations are in'); } /** * Overrides the action execute method in order to vanish the idea of environments * from phinx. CakePHP does not believe in the idea of having in-app environments * * @param \Symfony\Component\Console\Input\InputInterface $input the input object * @param \Symfony\Component\Console\Output\OutputInterface $output the output object * @return int */ protected function execute(InputInterface $input, OutputInterface $output): int { $event = $this->dispatchEvent('Migration.beforeSeed'); if ($event->isStopped()) { return $event->getResult() ? BaseCommand::CODE_SUCCESS : BaseCommand::CODE_ERROR; } $seed = $input->getOption('seed'); if (!empty($seed) && !is_array($seed)) { /** @psalm-suppress InvalidScalarArgument */ $input->setOption('seed', [$seed]); } $this->setInput($input); $this->bootstrap($input, $output); $this->getManager()->setInput($input); $result = $this->parentExecute($input, $output); $this->dispatchEvent('Migration.afterSeed'); return $result; } }