Last active
July 30, 2022 18:25
-
-
Save eklect/12af3f5cdac18adc792f9397617dc999 to your computer and use it in GitHub Desktop.
Phinx -> Getting Config name from Phinx Object.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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