bacart/symfony-aware
Composer 安装命令:
composer require bacart/symfony-aware
包简介
Symfony service awareness library
README 文档
README
Symfony service awareness library.
Installation
Using command line:
Run the following command, and you will get the latest version by Packagist.
composer require bacart/symfony-aware
Using composer.json
To use the newest (maybe unstable) version add following into your composer.json:
{
"require": {
"bacart/symfony-aware": "dev-master"
}
}
Usage Example
use Bacart\SymfonyAware\Interfaces\LoggerAwareInterface; use Bacart\SymfonyAware\Traits\LoggerAwareTrait; class SomeService implements LoggerAwareInterface { use LoggerAwareTrait; public function someMethod(): void { $this->logger->info('Some information message'); } }
Example assumes that you are using an autowiring.
License
This project is released under the MIT license.
About
Project development is led by Alex Bacart.
统计信息
- 总下载量: 183
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-09-13