Decorator tag/autoconfiguration. Workarounds include:
app->bind() or bindIf().decorated() helper (if available in newer versions) or a custom trait.twigbridge/twig-laravel (if Twig is already in the stack).php-decorator library is PHP-agnostic and should work in Laravel, but Symfony-specific features (e.g., DecoratorBuilder) may need rewrites.league/container for decorator management.spatie/laravel-decorators) that could replace this?| Component | Laravel Equivalent | Adaptation Required |
|---|---|---|
| Symfony DI | Laravel Service Container | Replace DecoratorBuilder with manual bindings or league/container. |
| Twig Decorators | Blade Directives/Filters | Rewrite as Blade macros or use a Twig bridge. |
| Symfony Bundle | Laravel Package | Convert to a Laravel service provider. |
spatie/laravel-decorators.@decorate) or custom filters.php-decorator library itself (if no Symfony-specific features are needed).php-decorator library standalone in Laravel to validate core functionality.AuthService with a LoggingDecorator).DecoratorBuilder with Laravel’s bind().symfony/twig-bridge).DecoratorBuilder → Custom Laravel bindings.{{ object|decorate }} → Blade @decorate or {{ object->decorate() }}.symfony/* packages. Use replace in composer.json or isolate in a separate namespace.DecoratorA(DecoratorB(Object))).spatie/laravel-decorators).DecoratorBuilder failures) will need translation to Laravel context.cache()->remember()) may mitigate costs.singleton/new bindings explicitly.instanceof Decoratable).app[MyServiceDecorator] = fn($app) => new MyDecorator($app[MyService])).@decorate('service', 'method')).spatie/laravel-decorators (minimal learning).How can I help you explore Laravel packages today?