diff --git a/_config/versionedextension.yml b/_config/versionedextension.yml index 40a99720..1304cb9f 100644 --- a/_config/versionedextension.yml +++ b/_config/versionedextension.yml @@ -19,4 +19,4 @@ Name: versioned-table --- SilverStripe\ORM\DataQuery: extensions: - - SilverStripe\Versioned\VersionedTableDataQueryExtension + - SilverStripe\Versioned\Staged\VersionedTableDataQueryExtension diff --git a/_config/versionedownership.yml b/_config/versionedownership.yml index a6b43386..26833e2f 100644 --- a/_config/versionedownership.yml +++ b/_config/versionedownership.yml @@ -3,11 +3,11 @@ Name: versionedownership --- SilverStripe\ORM\DataObject: extensions: - RecursivePublishable: SilverStripe\Versioned\RecursivePublishable + RecursivePublishable: SilverStripe\Versioned\Staged\RecursivePublishable SilverStripe\Core\Injector\Injector: - SilverStripe\Versioned\RecursiveStagesInterface: - class: SilverStripe\Versioned\RecursiveStagesService + SilverStripe\Versioned\Staged\RecursiveStagesInterface: + class: SilverStripe\Versioned\Staged\RecursiveStagesService --- Name: versionedownership-admin OnlyIf: @@ -15,4 +15,4 @@ OnlyIf: --- SilverStripe\Admin\LeftAndMain: extensions: - RecursivePublishableHandler: SilverStripe\Versioned\RecursivePublishableHandler + RecursivePublishableHandler: SilverStripe\Versioned\Staged\RecursivePublishableHandler diff --git a/_config/versionedrequestprocessors.yml b/_config/versionedrequestprocessors.yml index 7161f7b6..8cefbd00 100644 --- a/_config/versionedrequestprocessors.yml +++ b/_config/versionedrequestprocessors.yml @@ -8,4 +8,4 @@ SilverStripe\Core\Injector\Injector: SilverStripe\Control\Director: properties: Middlewares: - VersionedMiddleware: '%$SilverStripe\Versioned\VersionedHTTPMiddleware' + VersionedMiddleware: '%$SilverStripe\Versioned\Staged\VersionedHTTPMiddleware' diff --git a/src/ChangeSet.php b/src/Staged/ChangeSet.php similarity index 99% rename from src/ChangeSet.php rename to src/Staged/ChangeSet.php index c3e5f315..364e1abc 100644 --- a/src/ChangeSet.php +++ b/src/Staged/ChangeSet.php @@ -1,6 +1,6 @@ write(); - $changeset->addObject($owner); + $changeset->addObject($owner); // will add a ChangeSetItem to $changeset->Changes() $result = $changeset->publish(true); if (!$result) { diff --git a/src/RecursivePublishableHandler.php b/src/Staged/RecursivePublishableHandler.php similarity index 90% rename from src/RecursivePublishableHandler.php rename to src/Staged/RecursivePublishableHandler.php index 6432fc49..99ee4354 100644 --- a/src/RecursivePublishableHandler.php +++ b/src/Staged/RecursivePublishableHandler.php @@ -1,10 +1,11 @@