didweb / myresourcesbundle
Symfony 的我的助手
1.0.9
2020-02-15 00:00 UTC
This package is auto-updated.
Last update: 2024-09-19 18:23:32 UTC
README
提供用于在 Symfony 中创建应用程序的辅助资源的 Bundle。
通常是一些我经常使用并在不同项目中复用的常用程序和函数。
现有资源
- ControlMenus: 返回 CSS 类,如果菜单处于活动状态。 更多信息:配置和使用
- MySearchSystem: 搜索系统返回根据应用筛选器过滤后的列表。 完整文档在 GitBook.com
- TwigCustomExtensions: 用于简化前端任务的 Twig 扩展。 更多信息:配置和使用
- Slug: 创建 slugs。 (作者:Sean Murphy) 代码在 Github
安装
需要声明用于 Twig 扩展的服务。
在文件 ./config/services.yaml
...
service:
didweb.myresources.twigcustomextensions:
public: true
autowire: true
class: DidWeb\Bundle\TwigCustomExtensions\DidWebExtension
tags:
- { name: twig.extension }