Permalink
Browse files

Merge pull request #30 from avidenie/patch-1

Fix improper namespace for RuntimeException
  • Loading branch information...
2 parents b838649 + c000374 commit 37a9e11cd33e848545b50e670a2475d1bd1868b0 @davedevelopment committed Feb 17, 2013
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/Phpmig/Console/Command/AbstractCommand.php
@@ -93,21 +93,21 @@ protected function bootstrap(InputInterface $input, OutputInterface $output)
$container = $func();
if (!($container instanceof \ArrayAccess)) {
- throw new RuntimeException($bootstrap . " must return object of type \ArrayAccess");
+ throw new \RuntimeException($bootstrap . " must return object of type \ArrayAccess");
}
$this->setContainer($container);
/**
* Adapter
*/
if (!isset($container['phpmig.adapter'])) {
- throw new RuntimeException($bootstrap . " must return container with service at phpmig.adapter");
+ throw new \RuntimeException($bootstrap . " must return container with service at phpmig.adapter");
}
$adapter = $container['phpmig.adapter'];
if (!($adapter instanceof \Phpmig\Adapter\AdapterInterface)) {
- throw new RuntimeException("phpmig.adapter must be an instance of \Phpmig\Adapter\AdapterInterface");
+ throw new \RuntimeException("phpmig.adapter must be an instance of \Phpmig\Adapter\AdapterInterface");
}
if (!$adapter->hasSchema()) {
@@ -120,13 +120,13 @@ protected function bootstrap(InputInterface $input, OutputInterface $output)
* Migrations
*/
if (!isset($container['phpmig.migrations'])) {
- throw new RuntimeException($bootstrap . " must return container with array at phpmig.migrations");
+ throw new \RuntimeException($bootstrap . " must return container with array at phpmig.migrations");
}
$migrations = $container['phpmig.migrations'];
if (!is_array($migrations)) {
- throw new RuntimeException("phpmig.migrations must be an array of paths to migrations");
+ throw new \RuntimeException("phpmig.migrations must be an array of paths to migrations");
}
$versions = array();

0 comments on commit 37a9e11

Please sign in to comment.