Permalink
Browse files

Merge branch 'master' of https://github.com/davedevelopment/phpmig

  • Loading branch information...
2 parents d2ec79c + 37a9e11 commit cc989e96a156185e738521153349c2d62468a1b7 @lalop lalop committed Apr 25, 2013
View
3 src/Phpmig/Adapter/PDO/Sql.php
@@ -3,7 +3,8 @@
namespace Phpmig\Adapter\PDO;
use Phpmig\Migration\Migration,
- Phpmig\Adapter\AdapterInterface;
+ Phpmig\Adapter\AdapterInterface,
+ PDO;
/**
* Simple PDO adapter to work with SQL database
View
10 src/Phpmig/Console/Command/AbstractCommand.php
@@ -94,21 +94,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()) {
@@ -121,13 +121,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();
View
2 src/Phpmig/Pimple/Pimple.php
@@ -2,6 +2,8 @@
namespace Phpmig\Pimple;
+use InvalidArgumentException;
+
/*
* This file is part of Pimple.
*

0 comments on commit cc989e9

Please sign in to comment.