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 @@