%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/loslex/demo/vendor/livewire/livewire/src/Features/SupportLocales/
Upload File :
Create Path :
Current File : /www/loslex/demo/vendor/livewire/livewire/src/Features/SupportLocales/SupportLocales.php

<?php

namespace Livewire\Features\SupportLocales;

use Livewire\ComponentHook;

class SupportLocales extends ComponentHook
{
    function hydrate($memo)
    {
        if ($locale = $memo['locale']) app()->setLocale($locale);
    }

    function dehydrate($context)
    {
        $context->addMemo('locale', app()->getLocale());
    }
}

Zerion Mini Shell 1.0