diff --git a/Classes/Configuration/ConfigurationContainer.php b/Classes/Configuration/ConfigurationContainer.php index 764e91a..e662e21 100644 --- a/Classes/Configuration/ConfigurationContainer.php +++ b/Classes/Configuration/ConfigurationContainer.php @@ -45,8 +45,7 @@ class ConfigurationContainer implements ConfigurationContainerInterface { $this->settings = $configurationManager->getConfiguration( ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS, - 'SearchCore', - 'search' + 'SearchCore' ); if ($this->settings === null) { throw new NoConfigurationException('Could not fetch configuration.', 1484226842); diff --git a/Documentation/source/changelog.rst b/Documentation/source/changelog.rst index 84d5ab8..32921d2 100644 --- a/Documentation/source/changelog.rst +++ b/Documentation/source/changelog.rst @@ -25,3 +25,4 @@ prior v1.0.0 changelog/prior-1.0.0/20180308-introduce-php70-type-hints changelog/prior-1.0.0/20180306-120-facet-configuration changelog/prior-1.0.0/20180926-163-allow-zero-as-typoscript-filter-value + changelog/prior-1.0.0/20181106-170-do-not-specify-the-pluginname-in-configurationcontainer diff --git a/Documentation/source/changelog/prior-1.0.0/20181106-170-do-not-specify-the-pluginname-in-configurationcontainer.rst b/Documentation/source/changelog/prior-1.0.0/20181106-170-do-not-specify-the-pluginname-in-configurationcontainer.rst new file mode 100644 index 0000000..7bca897 --- /dev/null +++ b/Documentation/source/changelog/prior-1.0.0/20181106-170-do-not-specify-the-pluginname-in-configurationcontainer.rst @@ -0,0 +1,17 @@ +Feature 170 "Do not specify the pluginName in ConfigurationContainer" +=============================================================================== + +Prior to the change it was not possible to create a second plugin in a +separate extension. The pluginName for the configuration was set to `search`. +The problem was that the plugin specific settings could not be fetched. + +The configuration in `plugin.tx_exampleextension_pluginkey.settings {..}` and +from flexform were not fetched. + +Now the pluginName is not set and the ConfigurationManager checks which plugin +is used in the current context. + +It is now possible to create a second plugin. For example if you want to cache +the output of your query or the filters you specified. + +See :issue:`170`.