fond-of-spryker/file-get-content

0.1.1 2018-11-23 14:56 UTC

This package is auto-updated.

Last update: 2024-12-11 19:28:25 UTC


README

license

Simple wrapper for using PHP file_get_contents() in twig. As example needed for inline SVG graphics

Install

composer require fond-of-spryker/discount-widget

Configuration

Register the new provider in your YvesBootstrap

$this->application->register(new FileGetContentServiceProvider());

Using the new fileGetContent function inside TWIG:

{{ fileGetContent(fileUrl) }}