<?php
namespace Claromentis\Core\Localization\Subscriber;

$GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"] = (@$GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"] ?: array()) + array("_81a63d58717daa23601" . "87cde2012676c" => base64_decode("b25Qc" . "mVSZW" . "5kZXI" . "="), "_cf1147f375327c8" . "e8e02acd085df1aa" . "6" => base64_decode("b25Ud2lnUHJl" . "UmVuZGVy"), "_4aeff9f" . "04836efc" . "a8c2fe6d" . "82768eeb" . "6" => base64_decode("aXNvX2" . "xhbmd1" . "YWdlX2" . "NvZGU="));
use Claromentis\Core\Event\EventSubscriberInterface;
use Claromentis\Core\Localization\Localization;
use Claromentis\Core\Templater\Events\TemplaterPreRenderEvent;
use Claromentis\Core\Templater\TemplaterEvents;
use Claromentis\Core\Twig\Events\TwigPreRenderEvent;
use Claromentis\Core\Twig\TwigEvents;




class RenderSubscriber implements EventSubscriberInterface
{
    protected Localization $localization;
    
    
    
    
    public function __construct(Localization $_aef8d01f1d32e6333fa01fc401e05eee)
    {
        $this->localization = $_aef8d01f1d32e6333fa01fc401e05eee;
    }
    public static function getSubscribedEvents()
    {
        return [TemplaterEvents::PRE_RENDER => $GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_81a63d58717daa2360" . "187cde2012676c"], TwigEvents::PRE_RENDER => $GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_cf1147f375327c8e8" . "e02acd085df1aa6"]];
    }
    public function onPreRender(TemplaterPreRenderEvent $event)
    {
        $args = $event->GetArgs();
        $args[$GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_4aeff9f" . "04836efc" . "a8c2fe6d" . "82768eeb" . "6"]] = $this->localization->GetIsoLanguageCode();
        $event->SetArgs($args);
    }
    public function onTwigPreRender(TwigPreRenderEvent $event)
    {
        $event->addArguments([$GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_4aeff9f04836" . "efca8c2fe6d82" . "768eeb6"] => $this->localization->GetIsoLanguageCode()]);
    }
}