glavweb/content-bundle

该包最新版本(v0.3.3)没有提供许可信息。

Symfony GlavwebContentBundle.

v0.3.3 2018-04-20 12:47 UTC

This package is auto-updated.

Last update: 2024-09-24 02:41:19 UTC


README

使用composer获取该包

通过在Symfony项目的根目录下运行以下命令添加GlavwebContentBundle

php composer.phar require glavweb/content-bundle

启用包

要开始使用该包,请在您的应用程序的kernel类中注册该包

// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new Glavweb\ContentBundle\GlavwebContentBundle(),
        // ...
    );
}

配置包

此包被设计成开箱即用。您需要做的只是启用动态路由,在您的路由配置文件中添加以下内容。

#  app/config/routing.yml

glavweb_content_block:
    resource: "@GlavwebContentBundle/Resources/config/routing.yml"