public function seoContentTypeAction(): void
{ @
set_time_limit(1200
);
$shopId =
(int) $this->
Request()->
getParam('shopId', 1
);
// Create shop
$this->
SeoIndex()->
registerShop($shopId);
$context =
$this->
get(\Shopware\Bundle\StoreFrontBundle\Service\ContextServiceInterface::
class)->
createShopContext($shopId);
// Make sure a template is available
$this->
RewriteTable()->
baseSetup();
$this->
RewriteTable()->
createContentTypeUrls($context);
$this->
View()->
assign([ 'success' => true,
]);
} /**
* Helper function which creates the seo urls for the
* passed shop id. The offset and limit parameter are used
* to update only an offset of article urls.
*
* @param int $offset
* @param int $limit
* @param \Shopware\Models\Shop\Shop $shop
*/