SVG

SVG Twig Extension is in the core (previously, it was a dedicated extension puswhord/svg).

Usage

By default, it's use FontAwesome. You just need to use twig svg function :

{{ svg('surprise') }}

Will show

Configure

By default, this extension load FontAwesome's icons.

You can choose to use your custom SVG icons by specifyng the svg_dir in configuration (default value is ['%kernel.project_dir%/templates/icons', '...fontawesomeVendorDir...', '%kernel.project_dir%/public/bundles/pushwordcore']).