blake/symfony-extensions
Composer 安装命令:
composer require blake/symfony-extensions
包简介
Provides some extra goodies to the base controller class and Doctrine entities in Symfony 2.
README 文档
README
This library adds some simple functionality that I find helpful when creating Symfony 2 applications.
Installation
To use this library, simply add SymfonyExtensions to your composer.json:
{ "require": { "blake/symfony-extensions": "*" } }
Documentation
For now, this library provides some base classes that you can extend to get some added functionality.
Blake\SymfonyExtensions\Controller\Controller
- Provides a
#getRepository($className)method that is a shortcut for#getDoctrine()->getRepository($className)
Blake\SymfonyExtensions\Entity\Entity
- Provides magic getters and setters so you don't need to generate and maintain them
- E.g.
getName()will return the value of$nameif it exists - Properties can be ignored by prepending them with an underscore (
_)
- E.g.
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-04-14