定制 dothiv/dothiv-contentful-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

dothiv/dothiv-contentful-bundle

最新稳定版本:v0.2.1

Composer 安装命令:

composer require dothiv/dothiv-contentful-bundle

包简介

ContentfulBundle for the Symfony Framework

README 文档

README

Travis CI

Code Climate

SensioLabsInsight

This is a Symfony2 bundle for providing a local queryable cache of Contentful entries and assets.

It's a subtree split off dothiv/dothiv.

Setup

The cache needs a database.

# Create database if not created before
sudo su postgres
psql
CREATE USER contentful;
CREATE DATABASE contentful;
GRANT ALL PRIVILEGES ON DATABASE contentful TO contentful;
ALTER USER contentful WITH PASSWORD 'password';

# Update the schema
app/console doctrine:schema:update --force

Usage

Sync content

Use app/console contentful:sync <access_token> to make your content available locally.

PageController

PageController contains a controller which can create the correct cache headers. As it only listens on contentful item dates it is required to define a minimum modification for the app. Run this command after every deploy to set it:

app/console contentful:config last_modified_content.min_last_modified `date +%FT%T%z`

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-15