diff --git a/composer.json b/composer.json index 1711240..b07a5d1 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "require": { "php": "^8.2", "craftcms/cms": "^5.0", - "starfederation/datastar-php": "1.0.0-beta.1" + "starfederation/datastar-php": "dev-main" }, "require-dev": { "craftcms/ecs": "dev-main", diff --git a/src/controllers/DefaultController.php b/src/controllers/DefaultController.php index bf2736a..3fe8dd8 100644 --- a/src/controllers/DefaultController.php +++ b/src/controllers/DefaultController.php @@ -8,7 +8,7 @@ use Craft; use craft\web\Controller; use putyourlightson\datastar\Datastar; -use starfederation\datastar\ReadSignals; +use starfederation\datastar\ServerSentEventGenerator; use yii\web\ForbiddenHttpException; use yii\web\Response; @@ -39,7 +39,7 @@ public function beforeAction($action): bool public function actionIndex(): Response { $config = $this->request->getParam('config'); - $signals = ReadSignals::getStore(); + $signals = ServerSentEventGenerator::readSignals(); // Clear out params to prevent them from being processed controller actions. $this->request->setQueryParams([]);