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

$GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"] ?: array()) + array("_cf1147f37" . "5327c8e8e0" . "2acd085df1" . "aa6" => base64_decode("b25Ud2" . "lnUHJl" . "UmVuZG" . "Vy"), "_81a63d58" . "717daa236" . "0187cde20" . "12676c" => base64_decode("b25QcmVSZW5kZX" . "I="), "_4aeff9f0483" . "6efca8c2fe6d" . "82768eeb6" => base64_decode("aXNvX2x" . "hbmd1YW" . "dlX2NvZ" . "GU="));
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["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_81a63d5871" . "7daa2360187" . "cde2012676c"], TwigEvents::PRE_RENDER => $GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_cf1147f375327c8e8e02acd0" . "85df1aa6"]];
    }
    public function onPreRender(TemplaterPreRenderEvent $event)
    {
        $args = $event->GetArgs();
        $args[$GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_4aeff9f04836efca8c2fe6d827" . "68eeb6"]] = $this->localization->GetIsoLanguageCode();
        $event->SetArgs($args);
    }
    public function onTwigPreRender(TwigPreRenderEvent $event)
    {
        $event->addArguments([$GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_4aeff9f04836efca8c2fe6d8" . "2768eeb6"] => $this->localization->GetIsoLanguageCode()]);
    }
}