diff --git a/DependencyInjection/SuluArticleExtension.php b/DependencyInjection/SuluArticleExtension.php index 5b0a7774..4f7136fe 100644 --- a/DependencyInjection/SuluArticleExtension.php +++ b/DependencyInjection/SuluArticleExtension.php @@ -393,15 +393,14 @@ public function load(array $configs, ContainerBuilder $container) $isPHPCRStorage = Configuration::ARTICLE_STORAGE_PHPCR === $storage; $isExperimentalStorage = Configuration::ARTICLE_STORAGE_EXPERIMENTAL === $storage; - $container->setParameter('sulu_article.default_main_webspace', $config['default_main_webspace']); - $container->setParameter('sulu_article.default_additional_webspaces', $config['default_additional_webspaces']); - $container->setParameter('sulu_article.types', $config['types']); - $container->setParameter('sulu_article.display_tab_all', $config['display_tab_all']); - $container->setParameter('sulu_article.smart_content.default_limit', $config['smart_content']['default_limit']); - $container->setParameter('sulu_article.search_fields', $config['search_fields']); - if ($isPHPCRStorage) { // can be removed when phpcr storage is removed + $container->setParameter('sulu_article.default_main_webspace', $config['default_main_webspace']); + $container->setParameter('sulu_article.default_additional_webspaces', $config['default_additional_webspaces']); + $container->setParameter('sulu_article.types', $config['types']); + $container->setParameter('sulu_article.display_tab_all', $config['display_tab_all']); + $container->setParameter('sulu_article.smart_content.default_limit', $config['smart_content']['default_limit']); + $container->setParameter('sulu_article.search_fields', $config['search_fields']); $container->setParameter('sulu_article.documents', $config['documents']); $container->setParameter('sulu_article.view_document.article.class', $config['documents']['article']['view']); } diff --git a/Resources/doc/experimental-storage.md b/Resources/doc/experimental-storage.md new file mode 100644 index 00000000..11c21313 --- /dev/null +++ b/Resources/doc/experimental-storage.md @@ -0,0 +1,70 @@ +# Experimental Content Bundle Storage + +For the **experimental** storage the articles are stored using the [SuluContentBundle](https://github.com/sulu/sulucontentbundle). + +## Installation + +To use the experimental storage you need to have the [SuluContentBundle](https://github.com/sulu/sulucontentbundle) installed. + +```bash +composer require sulu/content-bundle +``` + +Then you can configure it: + +```yaml +sulu_article: + article: + storage: experimental +``` + +## Configuration + +The following is showing the full configuration of the **experimental** article module: + +```yaml +sulu_product: + article: + storage: experimental + + # optional + objects: + article: + model: 'Sulu\Bundle\ArticleBundle\Article\Domain\Model\Article' +``` + +## Override Entities + +### Override Article Entity + +```php +=8.0", + "handcraftedinthealps/elasticsearch-bundle": "<5.2.6.4 >= 6.0", + "handcraftedinthealps/elasticsearch-dsl": "<5.0.7.1 || <6.2.0.1 || <7.2.0.1 >=8.0" + }, "suggest": { "sulu/automation-bundle": "Allows to outsource long-running route update processes." },