summaryrefslogtreecommitdiff
path: root/src/Database
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-01-15 23:31:19 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2018-01-15 23:31:19 +0100
commit78cddecef3ed0e29445a699ef7e6df56352779a4 (patch)
tree2f092b33eaaa52a1884f28735dad195c3f43ad80 /src/Database
parent0d154365a23678c138cadad31f746aa27ac3f96a (diff)
DatabaseServiceProvider: Added unit tests
Diffstat (limited to 'src/Database')
-rw-r--r--src/Database/DatabaseServiceProvider.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Database/DatabaseServiceProvider.php b/src/Database/DatabaseServiceProvider.php
index 306ffaca..818b76c4 100644
--- a/src/Database/DatabaseServiceProvider.php
+++ b/src/Database/DatabaseServiceProvider.php
@@ -5,7 +5,7 @@ namespace Engelsystem\Database;
use Engelsystem\Container\ServiceProvider;
use Exception;
use Illuminate\Database\Capsule\Manager as CapsuleManager;
-use Illuminate\Events\Dispatcher as EventsDispatcher;
+use PDOException;
class DatabaseServiceProvider extends ServiceProvider
{
@@ -31,7 +31,7 @@ class DatabaseServiceProvider extends ServiceProvider
try {
$capsule->getConnection()->getPdo();
- } catch (\PDOException $e) {
+ } catch (PDOException $e) {
$this->exitOnError();
}