I'm using a Phinx as a part of the Nette framework.
There is a Dependency Ijection contaier, where I can setup the Phinx configuration directly without the 'phinx.yml' file, using the setConfig method.
Unfortunately the Test command force to use the file.
I'm using a Phinx as a part of the Nette framework. There is a Dependency Ijection contaier, where I can setup the Phinx configuration directly without the 'phinx.yml' file, using the
setConfig
method.Unfortunately the
Test
command force to use the file.https://github.com/cakephp/phinx/blob/26753bdb66827383781eb0033b34cb467da1d12c/src/Phinx/Console/Command/Test.php#L62
It will be nice to have a possibility to check the connection with this configuration. Everything that I need is to encapsulate this line like this: