mw-cms/cms-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mw-cms/cms-bundle

Composer 安装命令:

composer require mw-cms/cms-bundle

包简介

Simple Dot Cms bundle

README 文档

README

composer.json

Change the minimum stability on the composer.json

"minimum-stability": "dev",
"prefer-stable": true

Edit the composer.json with the vcs with at least this info:

    "repositories": [
        {"type": "composer", "url": "https://repo.packagist.com/simpledot/"},
        {"packagist.org": false}
    ]       

Add the dependencies to this bundles:

"require": {
        "awstudio/article-cms-bundle": "^4.0",
        "awstudio/aw-catalog-bundle": "^4.0",
        "awstudio/aw-core-bundle": "^4.0",
        "awstudio/aw-form-bundle": "^4.0",
        "awstudio/awcmsbundle": "dev-symfony4",
        "awstudio/edm-bundle": "dev-symfony4"
        }

Change the psr autoload to use AppBundle instead of App:

  "autoload": {
      "psr-4": {
            "AppBundle\\": "src/"
        }
   },
  "autoload-dev": {
      "psr-4": {
            "AppBundle\\Tests\\": "tests/"
        }
   },

And run composer update

.env

Create a .env.dist file in the root of the project, with at least the next parameters:

#Symfony env
APP_ENV=dev
APP_SECRET=

#Doctrine
DATABASE_URL=mysql://$USER:$PASSWORD@db:$PORT/$DB

###> nelmio/cors-bundle ###
CORS_ALLOW_ORIGIN=^https?://localhost(:[0-9]+)?$
###< nelmio/cors-bundle ###

###> aws/aws-sdk-php-symfony ###
AWS_ID=
AWS_PRIVATE=
AWS_ENABLE=0
AWS_REGION=eu-central-1
AWS_S3_BUCKET=
###< aws/aws-sdk-php-symfony ###

FACEBOOK_APP_ID=
FACEBOOK_APP_SECRET=

MAILER_URL=null://localhost
MAILER_FROM=contact@awstudio.fr
MAILER_USER=null
MAILER_PASSWORD=null

Create a .env in the root folder copying the content of .env.dist and editing the content for you project

Config

Create the config files required on /config

Entities

Create the required entities in src/Entity

Forms

Create the required forms in src/Form

Repositories

Create the required repositories in src/Repository

Database

Run the next command to create the DB structure:

php bin/console doctrine:schema:update -f

Run the next command to load the fixtures and create some data by default:

php bin/console doctrine:fixtures:load

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2025-11-12