yireo/shopware6-twig-env

Expose ENV variables to Twig

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Type:shopware-platform-plugin

1.0.0 2023-09-15 05:16 UTC

This package is auto-updated.

Last update: 2024-04-17 08:45:29 UTC


README

Extremely simple Shopware 6 plugin that adds a Twig variable env with all environment variables. Mainly a proof of concept, but perhaps handy during development.

Installation

composer require yireo/shopware6-twig-env --dev
bin/console plugin:refresh
bin/console plugin:install --activate YireoTwigEnv

Usage

Just add a {{ dump() }} somewhere to your Twig templates. You'll see a variable env being added to the page.