NextDom\Helpers\Render
Class Render
Synopsis
class Render
{
- // constants
- const DEFAULT_LANGUAGE = 'fr';
- // members
- private static Render $instance;
- private Translator $translator;
- private Environment $twig;
- private $twigLoader;
- // methods
- private void __construct()
- private void initTranslation()
- private void initRenderer()
- public static Render getInstance()
- public string getTranslation()
- public void show()
- public string|null get()
- public string getCssHtmlTag()
Constants
Name | Value |
---|---|
DEFAULT_LANGUAGE | 'fr' |
Members
private
- $instance — NextDom\Helpers\Render
- $translator — Symfony\Component\Translation\Translator
- $twig — \Twig\Environment
- $twigLoader
Methods
private
- __construct() — Render constructor.
- initRenderer()
- initTranslation()
public
- get()
- getCssHtmlTag()
- getInstance() — Get render instance
- getTranslation()
- show()