webtown / kunstmaan-extension-bundle

Kunstmaan 扩展包

2.0.5 2017-04-06 13:43 UTC

README

此包为 KunstmaanCMSBundle 添加新功能

  • 自动缓存清除 + 缓存清除页面(设置 --> 缓存清除)
  • JMSTranslateBundle 集成(使用分支!)
  • 自定义页面部分:画廊、插入页面、滑块
  • 将自定义实体转换为可搜索实体

安装

步骤 1:下载包

打开命令行,进入您的项目目录,并执行以下命令以下载此包的最新稳定版本

$ composer require webtown/kunstmaan-extension-bundle 

此命令要求您已全局安装 Composer,具体请参阅 Composer 文档的 安装章节

步骤 2:启用包

然后,通过将其添加到项目 app/AppKernel.php 文件中注册的包列表中来启用此包

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new Webtown\KunstmaanExtensionBundle\WebtownKunstmaanExtensionBundle(),
            new JMS\TranslationBundle\JMSTranslationBundle(),
        );

        // ...
    }

    // ...
}

步骤 3:添加路由

将路由添加到 app/config/routing.yml

#KunstmaanExtensionBundle
KunstmaanExtensionBundle:
    resource: "@WebtownKunstmaanExtensionBundle/Resources/config/routing.yml"
    prefix:   /

变更日志

有关最近更改的更多信息,请参阅 CHANGELOG

测试

$ composer test

贡献

有关详细信息,请参阅 CONTRIBUTINGCONDUCT