Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix bootstrap locator #32

Merged
merged 3 commits into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 25, 2013
  1. @lalop

    fix bootstrap search

    lalop authored
  2. @lalop
  3. @lalop

    update doc

    lalop authored
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 1 deletion.
  1. +2 −0  README.md
  2. +2 −1  src/Phpmig/Console/Command/AbstractCommand.php
View
2  README.md
@@ -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
View
3  src/Phpmig/Console/Command/AbstractCommand.php
@@ -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);
$this->setBootstrap($bootstrap);
/**
Something went wrong with that request. Please try again.