rodbox/rodboxcore

RB核心版本Alpha

安装: 229

依赖: 2

建议者: 0

安全: 0

星标: 1

关注者: 1

分支: 0

开放问题: 0

类型:symfony-bundle

dev-master 2016-11-16 21:43 UTC

This package is auto-updated.

Last update: 2024-09-25 06:50:50 UTC


README

RB核心版本Alpha

路由

rb_core:
    resource: "@RBCoreBundle/Controller/"
    type:     annotation
    prefix:   /

配置

    - { resource: "@RBCoreBundle/Resources/config/services.yml" }

AppKernel.php

 public function registerBundles()
    {
        $bundles = [
           ...
            new RB\CoreBundle\RBCoreBundle(),
            new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(),
            new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
            new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(),
            new Knp\Bundle\MarkdownBundle\KnpMarkdownBundle(),

重要:创建以下文件

  • /app/config/rb_config.yml
  • /app/config/rb_config.yml.dist 它们必须包含绝对链接和RB应用程序的不同目录和文件的URL。

knpPaginator配置

https://github.com/KnpLabs/KnpPaginatorBundle

knpMarkdown配置

http://github.com/KnpLabs/KnpMarkdownBundle 服务配置

php bin/console config:dump-reference knp_markdown

StofDoctrineExtensionsBundle

文档 https://symfony.com.cn/doc/master/bundles/StofDoctrineExtensionsBundle/index.html

http://atlantic18.github.io/DoctrineExtensions/

安装教程

https://www.grafikart.fr/formations/sf2-ecommerce/doctrine-extension

如果更新了composer

[RuntimeException]
  Failed to execute git status --porcelain --untracked-files=no
  xcrun: error: invalid active developer path (/Library/Developer/CommandLineTool
  s), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

安装

sudo xcode-select --install