From e69cfd152eb6ed290cd9318289dbc5eb675fa5b6 Mon Sep 17 00:00:00 2001 From: Aaron Carlino Date: Thu, 19 Nov 2020 13:27:08 +1300 Subject: [PATCH] DOCS: Document new stateless plugins --- .../02_Developer_Guides/19_GraphQL/05_plugins/01_overview.md | 2 +- .../19_GraphQL/05_plugins/02_writing_a_simple_plugin.md | 2 +- .../19_GraphQL/05_plugins/03_writing_a_complex_plugin.md | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en/02_Developer_Guides/19_GraphQL/05_plugins/01_overview.md b/docs/en/02_Developer_Guides/19_GraphQL/05_plugins/01_overview.md index 5a65e77ee..494349a5f 100644 --- a/docs/en/02_Developer_Guides/19_GraphQL/05_plugins/01_overview.md +++ b/docs/en/02_Developer_Guides/19_GraphQL/05_plugins/01_overview.md @@ -126,7 +126,7 @@ Plugins have to be registered with Injector. SilverStripe\Core\Injector\Injector: SilverStripe\GraphQL\Schema\Registry\PluginRegistry: constructor: - myPlugin: '%$MyProject\Plugins\MyPlugin' + - 'MyProject\Plugins\MyPlugin' ``` [info] diff --git a/docs/en/02_Developer_Guides/19_GraphQL/05_plugins/02_writing_a_simple_plugin.md b/docs/en/02_Developer_Guides/19_GraphQL/05_plugins/02_writing_a_simple_plugin.md index c16053c68..21b547e5f 100644 --- a/docs/en/02_Developer_Guides/19_GraphQL/05_plugins/02_writing_a_simple_plugin.md +++ b/docs/en/02_Developer_Guides/19_GraphQL/05_plugins/02_writing_a_simple_plugin.md @@ -73,7 +73,7 @@ Let's register the plugin: SilverStripe\Core\Injector\Injector: SilverStripe\GraphQL\Schema\Registry\PluginRegistry: constructor: - truncate: '%$MyProject\Plugins\Truncator' + - 'MyProject\Plugins\Truncator' ``` And now we can apply it to any string field we want: diff --git a/docs/en/02_Developer_Guides/19_GraphQL/05_plugins/03_writing_a_complex_plugin.md b/docs/en/02_Developer_Guides/19_GraphQL/05_plugins/03_writing_a_complex_plugin.md index eee7d9fa7..8d5344a8f 100644 --- a/docs/en/02_Developer_Guides/19_GraphQL/05_plugins/03_writing_a_complex_plugin.md +++ b/docs/en/02_Developer_Guides/19_GraphQL/05_plugins/03_writing_a_complex_plugin.md @@ -246,8 +246,8 @@ Back to Injector: SilverStripe\Core\Injector\Injector: SilverStripe\GraphQL\Schema\Registry\PluginRegistry: constructor: - geocodeQuery: '%$MyProject\Plugins\GeocodableQuery' - geocodeDataObject: '%$MyProject\Plugins\GeocodableDataObject' + - 'MyProject\Plugins\GeocodableQuery' + - 'MyProject\Plugins\GeocodableDataObject' ``` ### Step 6: Apply the plugins