Spread the love

Musings of a programmer

Visits: 218

Technologies of choice

Spread the love

I have worked with many technologies, and while I rally like simplicity of Laravel, I have for my day job learned Symfony. And over time, became quite a fan of the following setup:

  • Symfony 5
  • ApiPlatform
  • VueJS
  • Mercure
Visits: 0


Spread the love

Currently employed by Taitotekniikka OY in Finland. A self taught programmer working in the field for 15 years. Current projects are IOT related.

Visits: 0


Spread the love
Visits: 0

Mercure with Apache

One of the things which I absolutely love about ApiPlatform is its deep integration with Mercure and all the real time stuff which just works. My issue this week was, the server was Apache… and I could not just copy/paste from the docs. Here is what worked as our final setup: JWT_KEY=’!ChangeMe!’ CORS_ALLOWED_ORIGINS=* ADDR=’localhost:3000′ /home/mercure/mercure …

Api-platform and Mercure

This was an interesting one for me. It took me quite a while to clearly get the private subscriptions. Here is what it was in the end: AuthenticationSuccessListener public function onAuthenticationSuccessResponse(AuthenticationSuccessEvent $event): void { $data = $event->getData(); $user = $event->getUser(); if (!$user instanceof User) { return; } $token = (new Builder()) ->withClaim(‘mercure’, [‘subscribe’ => $user->getMercureIri()]) …


Spread the love

Feel free to reach out with your thoughts and questions. @tdawgpharaoh on Twitter

Visits: 17