valiton / shariff-bundle
Shariff php后端用于Symfony2的bundle
0.6.0
2016-02-05 13:46 UTC
Requires
- php: >=5.3.0
- friendsofsymfony/rest-bundle: ~1.2
- heise/shariff: ~1.0
- symfony/framework-bundle: >=2.1.0
- twig/twig: ~1.23|~2.0
This package is auto-updated.
Last update: 2024-09-16 14:56:08 UTC
README
此bundle允许轻松将Shariff集成到您的Symfony 2应用程序中
安装
使用composer安装bundle
composer require valiton/shariff-bundle
并在您的kernel中激活bundle。
将以下内容添加到您的app/config/routing.yml
valiton_shariff:
resource: "@ValitonShariffBundle/Resources/config/routing.xml"
prefix: /shariff
配置
根据您的需求配置bundle,完整的配置示例
valiton_shariff:
domain: '<your-domain>'
force_protocol: ~ # http or https
cache:
cacheDir: '%kernel.cache_dir%'
ttl: 3600
adapter: 'Apc' # to use apc for caching,
client: # optinal guzzle settings
timeout: 4
connect_timeout: 2
services:
Facebook:
app_id: <your app id>
secret: <your secret>
GooglePlus: ~
Twitter: ~