raphhh/puppy-service
最新稳定版本:1.0.0
Composer 安装命令:
composer require raphhh/puppy-service
包简介
Services for Puppy framework
关键字:
README 文档
README
Basic services for Puppy framework.
Installation
$ composer require raphhh/puppy-service
Session
Service for Symfony\Component\HttpFoundation\Session\Session.
Template
Service for Twig_Environment.
Note that the services are accessible in twig templates with the global variable "services".
Twig has also a filter "link". This filter prepends the config "baseUrl" to a link.
<a href="{{ 'my/page'|link }}">click here</a>
Config options
- 'template.directory.main' => path to the directory of the template files.
- 'template.directory.cache' => path to the directory of the cache of the template files.
- 'template.debug' => indicates if the debug mode is enable in the template.
- 'baseUrl' => gives the base url to apply for the twig filter "link".
- 'session.sessionStorageClass' => name of the class to handle the session storage.
- 'session.attributeBagClass' => name of the class to handle the attributes session.
- 'session.flashBagClass' => name of the class to handle the flash session.
统计信息
- 总下载量: 163
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-01-25