项目作者: bacart

项目描述 :
Bacart transliteration library
高级语言: PHP
项目地址: git://github.com/bacart/transliteration.git
创建时间: 2018-09-17T21:18:29Z
项目社区:https://github.com/bacart/transliteration

开源协议:MIT License

下载


Symfony Aware

PHP from Packagist
Latest Stable Version
Total Downloads
License

Symfony service awareness library.

Installation

Using command line:

Run the following command, and you will get the latest version by Packagist.

  1. composer require bacart/symfony-aware
Using composer.json

To use the newest (maybe unstable) version add following into your composer.json:

  1. {
  2. "require": {
  3. "bacart/symfony-aware": "dev-master"
  4. }
  5. }

Usage Example

  1. use Bacart\SymfonyAware\Interfaces\LoggerAwareInterface;
  2. use Bacart\SymfonyAware\Traits\LoggerAwareTrait;
  3. class SomeService implements LoggerAwareInterface
  4. {
  5. use LoggerAwareTrait;
  6. public function someMethod(): void
  7. {
  8. $this->logger->info('Some information message');
  9. }
  10. }

Example assumes that you are using an autowiring.

License

This project is released under the MIT license.

About

Project development is led by the Alex Bacart.