*/ protected array $componentLocations = []; /** * @var array */ protected array $livewireComponentLocations = []; public function registerComponentLocation(string $path, string $namespace, ?string $viewNamespace): void { $this->componentLocations[$namespace] = [ 'path' => $path, 'viewNamespace' => $viewNamespace, ]; } /** * @return array */ public function getComponentLocations(): array { return $this->componentLocations; } public function registerLivewireComponentLocation(string $path, string $namespace, ?string $viewNamespace): void { $this->livewireComponentLocations[$namespace] = [ 'path' => $path, 'viewNamespace' => $viewNamespace, ]; } /** * @return array */ public function getLivewireComponentLocations(): array { return $this->livewireComponentLocations; } }