diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ebee9fd..dceb7a7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +### 3.8.11 ### +- Fixed registerSchematicSources hook + ### 3.8.10 ### - Added dummy getTheme method to schematic application diff --git a/README.md b/README.md index 9161684a..da64d820 100644 --- a/README.md +++ b/README.md @@ -194,7 +194,7 @@ public function registerMigrationService() Gives plugins a chance to register their own Migration Services to Schematic in order to import or exports their own data. ```php -public function registerSchematicSource($indexFrom) +public function registerSchematicSources($indexFrom) { $mapping = [ 'createSomething:handle1' => 'createSomething:1' diff --git a/src/Services/Sources.php b/src/Services/Sources.php index 3e387d99..3e68f978 100644 --- a/src/Services/Sources.php +++ b/src/Services/Sources.php @@ -154,7 +154,7 @@ private function getHookedSource($source, $indexFrom) private function loadHookedSources($indexFrom) { if (!isset($this->hookedSources[$indexFrom])) { - $this->hookedSources[$indexFrom] = Craft::app()->plugins->call('registerSchematicSources'); + $this->hookedSources[$indexFrom] = Craft::app()->plugins->call('registerSchematicSources', [$indexFrom]); } } }