Skip to content

Commit

Permalink
Add config file path to example
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-cz committed Jan 7, 2025
1 parent 5bad109 commit 5fd1f01
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/en/commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,10 @@ using the Manager class :
'connection' => $pdo,
'name' => ':memory:',
];
$config = new Config($configArray);
$config = new Config(
$configArray,
__DIR__ . '/../phinx.php'
);
$manager = new Manager($config, new StringInput(' '), new NullOutput());
$manager->migrate('test');
$manager->seed('test');
Expand Down

0 comments on commit 5fd1f01

Please sign in to comment.