adtechpotok/symfony-aware
Symfony “aware” interfaces and traits for quickly injecting common services (EntityManager, Doctrine, cache, logger, kernel, request stack, etc.) into your classes. Works with explicit service calls or Symfony 3.3+ autowiring.
EntityManager) in third-party packages.Adopt if:
EntityManager in 50+ services).Look elsewhere if:
php-aware or Symfony’s native DI components).*"This package lets our dev team cut 30–50% of boilerplate code when injecting Symfony services like Doctrine or Cache into classes. By adopting it, we’ll:
*"Problem: We’re wasting time manually injecting @doctrine.orm.entity_manager or @cache.app in every service. This package provides traits/interfaces to auto-wire these dependencies with zero boilerplate.
Benefits:
public function setEntityManager(EntityManager $em) with a trait.Note: Pair this with a compatibility audit (e.g., test with Symfony 5.4+/Laravel 8+) and consider forking if active maintenance is required.
How can I help you explore Laravel packages today?