Skip to content

Instantly share code, notes, and snippets.

@eklect
Last active July 30, 2022 18:25
Show Gist options
  • Save eklect/12af3f5cdac18adc792f9397617dc999 to your computer and use it in GitHub Desktop.
Save eklect/12af3f5cdac18adc792f9397617dc999 to your computer and use it in GitHub Desktop.
Phinx -> Getting Config name from Phinx Object.
<?php
$object = $this->getInput();
$ref = new ReflectionClass();
$prop = $ref->getProperty('options');
$prop->setAccessible(true);
$config_name = $prop->getValue($this->getInput())["configuration"];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment