Skip to content

Instantly share code, notes, and snippets.

@dschiffel
dschiffel / gist:eeae2f93a4ccbcbabc33efe5225c2c30
Created February 21, 2023 07:52
Dummy data pre testovanie newslettra
{
"utm_source": "SAS",
"utm_medium": "email",
"utm_campaign": "Test",
"p1": {
"name": "Hotel Emerald Zanzibar Resort & Spa",
"term": "27.04. - 04.05.2023",
"price": "1 699€",
"old_price": "2 960€",
"food": "All Inclusive",
@dschiffel
dschiffel / LoginAuthenticationHandler.php
Created January 11, 2020 11:23 — forked from chalasr/LoginAuthenticationHandler.php
FOSUserBundle Login Authentication Success Handler example.
<?php
namespace AppBundle\EventListener;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Http\Authentication\AuthenticationSuccessHandlerInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;
@dschiffel
dschiffel / Menu.php
Created January 11, 2020 10:40 — forked from lsv/Menu.php
Symfony 4 - KnpMenuBundle - menu with event
<?php
// src/Menu/Menu.php
namespace App\Menu;
use App\Event\Menu\Topbar\UserMenuEvent;
use Knp\Menu\FactoryInterface;
use Knp\Menu\ItemInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\HttpFoundation\RequestStack;