From 1c2a355a5a4c6ff8e75fb07ceabdc3b151652862 Mon Sep 17 00:00:00 2001 From: Joby Elliott Date: Fri, 17 Aug 2018 16:32:26 -0600 Subject: [PATCH] changing namespace --- README.md | 4 ++-- composer.json | 4 ++-- src/DSO.php | 4 ++-- src/DSOFactoryInterface.php | 7 ++----- src/DSOInterface.php | 4 ++-- src/DriverFactory.php | 4 ++-- src/Drivers/AbstractDriver.php | 8 ++++---- src/Drivers/DSODriverInterface.php | 8 ++++---- src/Drivers/MySQLDriver.php | 4 ++-- src/Factory.php | 4 ++-- src/LegacyDrivers/AbstractLegacyDriver.php | 12 ++++++------ src/LegacyDrivers/MySQL56Driver.php | 4 ++-- src/LegacyDrivers/README.md | 4 ++-- src/LegacyDrivers/SQLiteDriver.php | 10 +++++----- src/Search.php | 8 ++++---- tests/DSOTest.php | 4 ++-- tests/Drivers/AbstractDriverTest.php | 8 ++++---- .../AbstractDriverIntegrationTest.php | 10 +++++----- .../IntegrationTests/MySQLDriverIntegrationTest.php | 6 +++--- tests/Drivers/MySQLDriverTest.php | 4 ++-- tests/FactoryTest.php | 4 ++-- tests/HarnessDriver.php | 4 ++-- .../IntegrationTests/SQLiteDriverIntegrationTest.php | 8 ++++---- tests/LegacyDrivers/MySQL56DriverTest.php | 8 ++++---- tests/LegacyDrivers/SQLiteDriverTest.php | 6 +++--- 25 files changed, 74 insertions(+), 77 deletions(-) diff --git a/README.md b/README.md index 9581cf5..502bae9 100644 --- a/README.md +++ b/README.md @@ -21,13 +21,13 @@ In order to read/write objects from a database table, you'll need to configure a // DriverFactory::factory() has the same arguments as PDO::__construct // You can also construct a driver directly, from a class in Drivers, // but for common databases DriverFactory::factory should pick the right class -$driver = \Digraph\DriverFactory::factory( +$driver = \Destructr\DriverFactory::factory( 'mysql:host=127.0.0.1', 'username', 'password' ); // Driver is then used to construct a Factory -$factory = new \Digraph\Destructr\Factory( +$factory = new \Destructr\Factory( $driver, //driver is used to manage connection and generate queries 'dso_objects' //all of a Factory's data is stored in a single table ); diff --git a/composer.json b/composer.json index 800d9ba..a0fe501 100644 --- a/composer.json +++ b/composer.json @@ -30,12 +30,12 @@ }, "autoload": { "psr-4": { - "Digraph\\Destructr\\": "src/" + "Destructr\\": "src/" } }, "autoload-dev": { "psr-4": { - "Digraph\\Destructr\\": "tests/" + "Destructr\\": "tests/" } } } diff --git a/src/DSO.php b/src/DSO.php index 8d731ad..ccd75dd 100644 --- a/src/DSO.php +++ b/src/DSO.php @@ -1,6 +1,6 @@ */ -namespace Digraph\Destructr; +/* Destructr | https://gitlab.com/byjoby/destructr | MIT License */ +namespace Destructr; interface DSOFactoryInterface { diff --git a/src/DSOInterface.php b/src/DSOInterface.php index 373eeee..ba54c93 100644 --- a/src/DSOInterface.php +++ b/src/DSOInterface.php @@ -1,6 +1,6 @@ pdo->sqliteCreateFunction( 'DESTRUCTR_JSON_EXTRACT', - '\\Digraph\\Destructr\\LegacyDrivers\\SQLiteDriver::JSON_EXTRACT', + '\\Destructr\\LegacyDrivers\\SQLiteDriver::JSON_EXTRACT', 2 ); } diff --git a/src/Search.php b/src/Search.php index 6e16f6e..e79854c 100644 --- a/src/Search.php +++ b/src/Search.php @@ -1,9 +1,9 @@