Skip to content

Commit

Permalink
Change namepsace
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime-rainville committed Oct 20, 2024
1 parent 01164d3 commit bed8e1e
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Simply reference the `DBJson` class in your DataObject's `$db` array. This will
```php
<?php
use SilverStripe\ORM\DataObject;
use MaximeRainville\Silverstripe\DbJson\DBJson;
use ArchiPro\Silverstripe\DbJson\DBJson;

class MyDataObject extends DataObject
{
Expand Down Expand Up @@ -117,7 +117,7 @@ Your MySQLSchemaManager must have a `json` method so it it knows how to create `
This extension will automatically replace the native MySQLSchemaManager with its own `MySQL8SchemaManager`.

If you've already defined a custom `MySQLSchemaManager`:
- add the `MaximeRainville\Silverstripe\DbJson\JsonDatabaseFieldDefinition` trait to your class.
- add the `ArchiPro\Silverstripe\DbJson\JsonDatabaseFieldDefinition` trait to your class.
- Make sure your custom `MySQLSchemaManager` is loaded after the one provided by this extension.

```yml
Expand Down
6 changes: 3 additions & 3 deletions _config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ after:
---
SilverStripe\Core\Injector\Injector:
MySQLSchemaManager:
class: MaximeRainville\Silverstripe\DbJson\MySQL8SchemaManager
class: ArchiPro\Silverstripe\DbJson\MySQL8SchemaManager

SilverStripe\ORM\DataObject:
extensions:
- MaximeRainville\Silverstripe\DbJson\JsonDataExtension
- ArchiPro\Silverstripe\DbJson\JsonDataExtension


---
Expand All @@ -19,5 +19,5 @@ after:
---
SilverStripe\Core\Injector\Injector:
DataListFilter.Json:
class: MaximeRainville\Silverstripe\DbJson\JsonFilter
class: ArchiPro\Silverstripe\DbJson\JsonFilter
JsonFilter: '%$DataListFilter.Json'
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
},
"autoload": {
"psr-4": {
"MaximeRainville\\Silverstripe\\DbJson\\": "src/"
"ArchiPro\\Silverstripe\\DbJson\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"MaximeRainville\\Silverstripe\\DbJson\\Tests\\": "tests/php/"
"ArchiPro\\Silverstripe\\DbJson\\Tests\\": "tests/php/"
}
},
"minimum-stability": "dev",
Expand Down
2 changes: 1 addition & 1 deletion src/DBJson.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace MaximeRainville\Silverstripe\DbJson;
namespace ArchiPro\Silverstripe\DbJson;

use SilverStripe\ORM\DB;
use SilverStripe\ORM\FieldType\DBField;
Expand Down
2 changes: 1 addition & 1 deletion src/JsonDataExtension.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace MaximeRainville\Silverstripe\DbJson;
namespace ArchiPro\Silverstripe\DbJson;

use SilverStripe\ORM\DataExtension;
use SilverStripe\ORM\DataObjectSchema;
Expand Down
2 changes: 1 addition & 1 deletion src/JsonDatabaseFieldDefinition.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace MaximeRainville\Silverstripe\DbJson;
namespace ArchiPro\Silverstripe\DbJson;

use SilverStripe\ORM\Connect\MySQLSchemaManager;

Expand Down
2 changes: 1 addition & 1 deletion src/JsonFilter.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MaximeRainville\Silverstripe\DbJson;
namespace ArchiPro\Silverstripe\DbJson;

use SilverStripe\ORM\DataQuery;
use SilverStripe\ORM\DB;
Expand Down
2 changes: 1 addition & 1 deletion src/MySQL8SchemaManager.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace MaximeRainville\Silverstripe\DbJson;
namespace ArchiPro\Silverstripe\DbJson;

use SilverStripe\ORM\Connect\MySQLSchemaManager;

Expand Down
4 changes: 2 additions & 2 deletions tests/php/DBJsonTest.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
namespace MaximeRainville\Silverstripe\DbJson\Tests;
namespace ArchiPro\Silverstripe\DbJson\Tests;


use SilverStripe\Dev\SapphireTest;
use MaximeRainville\Silverstripe\DbJson\Tests\DataObjects\DataObjectWithJsonField;
use ArchiPro\Silverstripe\DbJson\Tests\DataObjects\DataObjectWithJsonField;
use SilverStripe\ORM\DB;

class DBJsonTest extends SapphireTest
Expand Down
4 changes: 2 additions & 2 deletions tests/php/DataObjects/DataObjectWithJsonField.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
namespace MaximeRainville\Silverstripe\DbJson\Tests\DataObjects;
namespace ArchiPro\Silverstripe\DbJson\Tests\DataObjects;

use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataObject;
use MaximeRainville\Silverstripe\DbJson\DBJson;
use ArchiPro\Silverstripe\DbJson\DBJson;

class DataObjectWithJsonField extends DataObject implements TestOnly
{
Expand Down

0 comments on commit bed8e1e

Please sign in to comment.