bacart / symfony-aware
Symfony service awareness library
v1.2.4
2024-05-31 10:03 UTC
Requires
- php: >=8.1
Requires (Dev)
- doctrine/annotations: ^2.0
- doctrine/orm: ^2.19
- easycorp/easyadmin-bundle: ^4.10
- ergebnis/composer-normalize: ^2.42
- friendsofphp/php-cs-fixer: ^3.58
- knpuniversity/oauth2-client-bundle: ^2.18
- phpstan/phpstan: ^1.11
- roave/security-advisories: dev-latest
- symfony/framework-bundle: ^6.3 || ^7.0
- symfony/lock: ^6.3 || ^7.0
- symfony/mercure: ^0.6
- symfony/messenger: ^6.3 || ^7.0
- symfony/property-access: ^6.3 || ^7.0
- symfony/routing: ^6.3 || ^7.0
- symfony/security-core: ^6.3 || ^7.0
- symfony/security-csrf: ^6.3 || ^7.0
- symfony/security-http: ^6.3 || ^7.0
- symfony/serializer: ^6.3 || ^7.0
- symfony/translation: ^6.3 || ^7.0
- symfony/validator: ^6.3 || ^7.0
- twig/twig: ^3.10
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 the Alex Bacart.