valantic-spryker / product-concrete-sitemap-connector
Provides product concrete urls for valantic-spryker/sitemap module
dev-main
2024-04-04 10:46 UTC
Requires
- php: >=8.0
- spryker/product-list: ^1.6.2
- valantic-spryker/product-concrete-url: ^6.0
- valantic-spryker/sitemap: ^4.0.4
Requires (Dev)
- fond-of-codeception/spryker: ^2.0
- spryker-sdk/phpstan-spryker: ^0.4.0
- spryker/architecture-sniffer: ^0.5.7
- spryker/code-sniffer: ^0.15.0
- spryker/development: ^3.34
- spryker/testify: ^3.47.0
This package is auto-updated.
Last update: 2025-01-03 16:39:42 UTC
README
This module is used alongside valantic-spryker/sitemap
Sitemap module to extend the sitemap with concrete product URLs.
Integration
Add composer registry
composer config repositories.gitlab.nxs360.com/461 '{"type": "composer", "url": "https://gitlab.nxs360.com/api/v4/group/461/-/packages/composer/packages.json"}'
Add Gitlab domain
composer config gitlab-domains gitlab.nxs360.com
Authentication
Go to Gitlab and create a personal access token. Then create an auth.json file:
composer config gitlab-token.gitlab.nxs360.com <personal_access_token>
Usage
1. Install package
composer require valantic-spryker/product-concrete-sitemap-connector
2. Update config_default.php
file
Add the ValanticSpryker
namespace in the following config keys:
$config[KernelConstants::CORE_NAMESPACES] = [ // [...] 'ValanticSpryker', ]; $config[KernelConstants::PROJECT_NAMESPACES] = [ // [...] 'ValanticSpryker', ];
3. Register ProductConcreteSitemapCreatorPlugin
Add ProductConcreteSitemapCreatorPlugin
in:
\Pyz\Zed\Sitemap\SitemapDependencyProvider::getSitemapCreatorPluginStack
4. Register ProductConcreteSitemapConnectorConstants
Add ProductConcreteSitemapConnectorConstants::RESOURCE_TYPE
in:
\Pyz\Yves\Sitemap\SitemapDependencyProvider::getAvailableSitemapRouteResources