Skip to content

Commit

Permalink
Read signals
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Dec 10, 2024
1 parent ada2258 commit d3da6d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/controllers/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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([]);
Expand Down

0 comments on commit d3da6d8

Please sign in to comment.