andchir/shopkeeper4-comments 问题修复 & 功能扩展

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

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

andchir/shopkeeper4-comments

Composer 安装命令:

composer require andchir/shopkeeper4-comments

包简介

Reviews and ratings for Symfony4

README 文档

README

Comments - screenshot #1

Can be used in Shopkeeper4 and in other applications using Symfony 4. Used DoctrineMongoDBBundle 4+.

Installing

composer config extra.symfony.allow-contrib true
composer require andchir/shopkeeper4-comments

Create classes for your entities using Andchir\CommentsBundle\Document\CommentAbstract and Andchir\CommentsBundle\Repository\CommentRepositoryInterface or use these examples:

vendor/andchir/shopkeeper4-comments/Document/Comment.php.dist
vendor/andchir/shopkeeper4-comments/Repository/CommentRepository.php.dist

Add to your twig template:

{% block stylesheets -%}
    {{ parent() }}
    <link href="{{ asset('bundles/comments/css/comments.css') }}" rel="stylesheet">
{% endblock -%}

Your block name may vary.

{% include '@Comments/Default/async.html.twig' with {'threadId': currentCategory.contentTypeName ~ '_' ~ currentId} only %}

Installing component for Shopker

Add to config/resources/admin_menu.yaml

- { title: 'COMMENTS', route: '/module/comments', icon: 'icon-message-circle' }

Open "src/App/Repository/CommentRepository.php" and replace

class CommentRepository extends DocumentRepository implements CommentRepositoryInterface

to:

class CommentRepository extends BaseRepository implements CommentRepositoryInterface

Manual installing

composer.json

"autoload": {
    "psr-4": {
        ...
        "Andchir\\CommentsBundle\\": "vendor/andchir/shopkeeper4-comments/"
    }
},

config/bundles.php

Andchir\CommentsBundle\CommentsBundle::class => ['all' => true]

Development

Create symlink:

ln -s /path/to/vendor/andchir/shopkeeper4-comments/frontend/projects/comments/src/app \
/path/to/frontend/projects/admin2/src/app/comments

Build for development mode:

ng build comments --optimization false --build-optimizer false --source-map true \
--baseHref="/admin/module/comments/" \
--deployUrl="/bundles/comments/admin/bundle-dev/" \
--outputPath="../public/bundles/comments/admin/bundle-dev" --watch=true

Build for production:

ng build comments --configuration production --baseHref="/admin/module/comments/" \
--deployUrl="/bundles/comments/admin/bundle/" \
--outputPath="../public/bundles/comments/admin/bundle"

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: Twig

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-12-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固