bacart / symfony-aware
Symfony service awareness library
v1.2.5
2025-08-16 10:30 UTC
Requires
- php: >=8.1
Requires (Dev)
- doctrine/annotations: ^2.0
- doctrine/orm: ^2.19 || ^3.5
- easycorp/easyadmin-bundle: ^4.24
- ergebnis/composer-normalize: ^2.47
- friendsofphp/php-cs-fixer: ^3.86
- knpuniversity/oauth2-client-bundle: ^2.18
- phpstan/phpstan: ^1.12
- 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/notifier: ^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.21
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.