Skip to content

Commit 7b7acb0

Browse files
authored
Merge pull request #327 from leszczuu/fix/remove-sitemap
fix/remove sitemap
2 parents ec68352 + e860306 commit 7b7acb0

9 files changed

Lines changed: 24 additions & 70 deletions

File tree

UPGRADE.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# UPGRADE FROM 2.4 TO 3.0
1+
# UPGRADE FROM 2.4 TO 3.0
2+
3+
* The `stefandoorn/sitemap-plugin` dependency has been removed, and moved to the `suggest` section of composer.json.
4+
If you didn't require this plugin by yourselves, but want to keep the sitemap support, consider requiring it directly in your project as described [here](doc/sitemap.md).
25

36
* Width and height has been added to image media. Now width and height html tags are generated in shop image.
47
Read the below changelog first and then migrate your structure using

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"php": "^7.3",
1313
"league/csv": "^9.1",
1414
"friendsofsymfony/ckeditor-bundle": "^1.1|^2.0",
15-
"stefandoorn/sitemap-plugin": "^2.0@alpha",
1615
"sylius/sylius": "^1.9"
1716
},
1817
"require-dev": {
@@ -42,6 +41,9 @@
4241
"symfony/intl": "^4.4||^5.2",
4342
"symfony/web-profiler-bundle": "^4.4||^5.2"
4443
},
44+
"suggest": {
45+
"stefandoorn/sitemap-plugin": "^2.0@alpha"
46+
},
4547
"conflict": {
4648
"symfony/symfony": "4.1.8",
4749
"symfony/browser-kit": "4.1.8",

doc/installation.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ return [
99
...
1010

1111
FOS\CKEditorBundle\FOSCKEditorBundle::class => ['all' => true], // WYSIWYG editor
12-
SitemapPlugin\SitemapPlugin::class => ['all' => true], // Sitemap support
1312
BitBag\SyliusCmsPlugin\BitBagSyliusCmsPlugin::class => ['all' => true],
1413
];
1514
```
@@ -54,7 +53,8 @@ bitbag_sylius_cms_plugin:
5453
resource: "@BitBagSyliusCmsPlugin/Resources/config/routing.yml"
5554
```
5655

57-
Import optional sitemap providers:
56+
If You have installed https://github.com/stefandoorn/sitemap-plugin according to its installation instructions
57+
import optional sitemap providers:
5858
```yaml
5959
# config/services.yaml
6060
...
@@ -63,6 +63,14 @@ imports:
6363
- { resource: "@BitBagSyliusCmsPlugin/Resources/config/services/sitemap_provider.yml" }
6464
```
6565

66+
and plugin dependency to your `config/bundles.php` file:
67+
```php
68+
return [
69+
...
70+
71+
SitemapPlugin\SitemapPlugin::class => ['all' => true], // Sitemap support
72+
];
73+
```
6674

6775
Finish the installation by updating the database schema and installing assets:
6876
```

doc/sitemap.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Sitemap
22

3-
This plugin uses Sylius sitemap plugin. It's already configured with the default installation
4-
and contains a page & section provider.
3+
This plugin suggests to install the Sylius sitemap plugin. The plugin is not installed automatically, but to install run:
4+
5+
```bash
6+
$ composer require stefandoorn/sitemap-plugin ^2.0@alpha
7+
```
8+
9+
It's already configured after installation and contains a page & section provider.
510

611
For more information, read the original [SitemapPlugin documentation](https://github.com/stefandoorn/sitemap-plugin).

src/Resources/config/config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ imports:
33
- { resource: "@BitBagSyliusCmsPlugin/Resources/config/fos_ck_editor/fos_ck_editor.yml" }
44
- { resource: "@BitBagSyliusCmsPlugin/Resources/config/grids.yml" }
55
- { resource: "@BitBagSyliusCmsPlugin/Resources/config/services.yml" }
6-
- { resource: "@SitemapPlugin/Resources/config/config.yaml" }
76

87
parameters:
98
sylius.sitemap.path: "%kernel.project_dir%/var/sitemap"

src/Resources/config/routing.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,3 @@ bitbag_sylius_cms_plugin_admin:
55
bitbag_sylius_cms_plugin_shop:
66
resource: "@BitBagSyliusCmsPlugin/Resources/config/routing/shop.yml"
77
prefix: /{_locale}
8-
9-
sylius_sitemap:
10-
resource: "@SitemapPlugin/Resources/config/routing.yml"

tests/Api/Sitemap/Provider/SitemapPageControllerApiTest.php

Lines changed: 0 additions & 57 deletions
This file was deleted.

tests/Application/config/bundles.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
Nelmio\Alice\Bridge\Symfony\NelmioAliceBundle::class => ['dev' => true, 'test' => true, 'test_cached' => true],
5555
Fidry\AliceDataFixtures\Bridge\Symfony\FidryAliceDataFixturesBundle::class => ['dev' => true, 'test' => true, 'test_cached' => true],
5656
FOS\CKEditorBundle\FOSCKEditorBundle::class => ['all' => true],
57-
SitemapPlugin\SitemapPlugin::class => ['all' => true],
5857
ApiPlatform\Core\Bridge\Symfony\Bundle\ApiPlatformBundle::class => ['all' => true],
5958
Sylius\Bundle\ApiBundle\SyliusApiBundle::class => ['all' => true],
6059
Lexik\Bundle\JWTAuthenticationBundle\LexikJWTAuthenticationBundle::class => ['all' => true],

tests/Application/config/services.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@
22
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
33
parameters:
44
locale: en_US
5-
imports:
6-
- { resource: "@BitBagSyliusCmsPlugin/Resources/config/services/sitemap_provider.yml" }

0 commit comments

Comments
 (0)