682 search results

Blog
2023: A Year in Tutorials & Open Source

…you can see it on this blog section or any course pages. And this is more than a re-skinning: it's a chance for us to embrace the LAST Stack principles: leverage Turbo, delete a lot of custom JavaScript and use Stimulus everywhere. It…

<?php
namespace App\EventSubscriber;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpKernel\Event\ResponseEvent;
class TurboFrameRedirectSubscriber implements EventSubscriberInterface
{
public function onKernelResponse(ResponseEvent $event)
{
}
public static function getSubscribedEvents()
{
return [
ResponseEvent::class => 'onKernelResponse',
];
}
}
See Code Block in Script