Browse files

Merge pull request #32 from lalop/master

Fix bootstrap locator
  • Loading branch information...
2 parents 37a9e11 + edc9456 commit 649b92f811e852d2724962cc27c4486d14353939 @davedevelopment committed Apr 26, 2013
Showing with 4 additions and 1 deletion.
  1. +2 −0
  2. +2 −1 src/Phpmig/Console/Command/AbstractCommand.php
@@ -54,6 +54,8 @@ Phpmig can do a little configuring for you to get started, go to the root of you
+f ./phpmig.php Create services in here
+Note that you can move phpmig.php to config/phpmig.php, the commands will look first in the config directory than in the root.
It can generate migrations, but you have to tell it where. Phpmig gets you to supply it with a list of migrations, so it doesn't know where to put them. Migration files should be named versionnumber_name.php, where version number is made up of 0-9 and name is CamelCase or snake\_case. Each migration file should contain a class with the same name as the file in CamelCase.
$ phpmig generate AddRatingToLolCats ./migrations
@@ -78,9 +78,10 @@ protected function bootstrap(InputInterface $input, OutputInterface $output)
$locator = new FileLocator(array(
$cwd . DIRECTORY_SEPARATOR . 'config',
+ $cwd
- $bootstrap = $locator->locate($bootstrap, $cwd, $first = true);
+ $bootstrap = $locator->locate($bootstrap);

0 comments on commit 649b92f

Please sign in to comment.