feat(Production): Complete production deployment infrastructure

- Add comprehensive health check system with multiple endpoints
- Add Prometheus metrics endpoint
- Add production logging configurations (5 strategies)
- Add complete deployment documentation suite:
  * QUICKSTART.md - 30-minute deployment guide
  * DEPLOYMENT_CHECKLIST.md - Printable verification checklist
  * DEPLOYMENT_WORKFLOW.md - Complete deployment lifecycle
  * PRODUCTION_DEPLOYMENT.md - Comprehensive technical reference
  * production-logging.md - Logging configuration guide
  * ANSIBLE_DEPLOYMENT.md - Infrastructure as Code automation
  * README.md - Navigation hub
  * DEPLOYMENT_SUMMARY.md - Executive summary
- Add deployment scripts and automation
- Add DEPLOYMENT_PLAN.md - Concrete plan for immediate deployment
- Update README with production-ready features

All production infrastructure is now complete and ready for deployment.
This commit is contained in:
2025-10-25 19:18:37 +02:00
parent caa85db796
commit fc3d7e6357
83016 changed files with 378904 additions and 20919 deletions

View File

@@ -0,0 +1,66 @@
<?php
declare(strict_types=1);
namespace App\Framework\LiveComponents\Events;
use App\Framework\LiveComponents\ValueObjects\ComponentId;
/**
* Domain event dispatched when a LiveComponent's state is updated
*
* This event is broadcast through the EventDispatcher and can be caught
* by the SSE system to push real-time updates to connected clients.
*/
final readonly class ComponentUpdatedEvent
{
/**
* @param array<string, mixed> $state New component state
* @param string|null $html Rendered HTML if available
* @param array<ComponentEvent> $events Events emitted during update
*/
public function __construct(
public ComponentId $componentId,
public array $state,
public ?string $html = null,
public array $events = []
) {
}
/**
* Check if HTML was rendered
*/
public function hasHtml(): bool
{
return $this->html !== null;
}
/**
* Check if events were emitted
*/
public function hasEvents(): bool
{
return ! empty($this->events);
}
/**
* Get component ID as string
*/
public function getComponentIdString(): string
{
return $this->componentId->toString();
}
/**
* Convert to array for serialization
*/
public function toArray(): array
{
return [
'componentId' => $this->componentId->toString(),
'state' => $this->state,
'html' => $this->html,
'events' => array_map(fn ($event) => $event->toArray(), $this->events),
];
}
}