experius/module-pagenotfoundgraphql

基于Experius_PageNotFound模块在GraphQl urlResolver中返回重定向

1.0.5 2024-05-31 09:13 UTC

This package is auto-updated.

Last update: 2024-08-31 00:26:42 UTC


README

``experius/module-pagenotfoundgraphql``

主要功能

基于Experius_PageNotFound模块在GraphQl urlResolver中返回重定向。

安装

* = 在生产环境中请使用--keep-generated选项

类型 1: 压缩文件

  • 将压缩文件解压到app/code/Experius
  • 运行php bin/magento module:enable Experius_PageNotFoundGraphQl启用模块
  • 运行php bin/magento setup:upgrade应用数据库更新*
  • 运行php bin/magento cache:flush刷新缓存

类型 2: Composer

  • 将模块添加到composer仓库中,例如
    • 私有仓库 repo.magento.com
    • 公共仓库 packagist.org
    • 公共GitHub仓库作为vcs
  • 运行composer config repositories.repo.magento.com composer https://repo.magento.com/将composer仓库添加到配置中
  • 运行composer require experius/module-pagenotfoundgraphql安装模块
  • 运行php bin/magento module:enable Experius_PageNotFoundGraphQl启用模块
  • 运行php bin/magento setup:upgrade应用数据库更新*
  • 运行php bin/magento cache:flush刷新缓存

规格

  • UrlRewriteEntityTypeEnum
    • PAGE_NOT_FOUND_REDIRECT
  • 插件
    • afterResolve - Magento\UrlRewriteGraphQl\Model\Resolver\EntityUrl > Experius\PageNotFoundGraphQl\Plugin\Graphql\Magento\UrlRewriteGraphQl\Model\Resolver\EntityUrl