Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spolischook/495d4af4c1610df80442 to your computer and use it in GitHub Desktop.
Save spolischook/495d4af4c1610df80442 to your computer and use it in GitHub Desktop.
Global variables symfony twig
{# ... #}
{{app.kernel.cachedir}}
{{app.kernel.logdir}}
{{app.kernel.rootdir}}
{{app.request.basepath}}
{{app.request.baseurl}}
{{app.request.uri}}
{{app.security.token.user}}
{{app.session.locale}}
{# ... #}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment