芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/public_html/vendor/livewire/livewire/src/ComponentHookRegistry.php
callBoot(); $hook->callMount($params, $parent); }); on('hydrate', function ($component, $memo) use ($hook) { $hook = static::initializeHook($hook, $component); $hook->callBoot(); $hook->callHydrate($memo); }); } on('update', function ($component, $fullPath, $newValue) { $propertyName = Utils::beforeFirstDot($fullPath); return static::proxyCallToHooks($component, 'callUpdate')($propertyName, $fullPath, $newValue); }); on('call', function ($component, $method, $params, $addEffect, $earlyReturn) { return static::proxyCallToHooks($component, 'callCall')($method, $params, $earlyReturn); }); on('render', function ($component, $view, $data) { return static::proxyCallToHooks($component, 'callRender')($view, $data); }); on('dehydrate', function ($component, $context) { static::proxyCallToHooks($component, 'callDehydrate')($context); }); on('destroy', function ($component, $context) { static::proxyCallToHooks($component, 'callDestroy')($context); }); on('exception', function ($component, $e, $stopPropagation) { static::proxyCallToHooks($component, 'callException')($e, $stopPropagation); }); } static public function initializeHook($hook, $target) { if (! isset(static::$components[$target])) static::$components[$target] = []; static::$components[$target][] = $hook = new $hook; $hook->setComponent($target); return tap($hook)->setComponent($target); } static function proxyCallToHooks($target, $method) { return function (...$params) use ($target, $method) { $callbacks = []; foreach (static::$components[$target] ?? [] as $hook) { $callbacks[] = $hook->{$method}(...$params); } return function (...$forwards) use ($callbacks) { foreach ($callbacks as $callback) { $callback(...$forwards); } }; }; } }