Bacart transliteration library
Symfony service awareness library.
Run the following command, and you will get the latest version by Packagist.
composer require bacart/symfony-aware
To use the newest (maybe unstable) version add following into your composer.json:
{
"require": {
"bacart/symfony-aware": "dev-master"
}
}
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.
This project is released under the MIT license.
Project development is led by the Alex Bacart.