Skip to content

Instantly share code, notes, and snippets.

Martin Århof lsv

Block or report user

Report or block lsv

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
lsv / symfony-deserialize.php
Last active Aug 13, 2019
is it possible to use ArrayDenormalizer, ObjectNormalizer and GetSetMethodNormalizer together?
View symfony-deserialize.php
// composer require symfony/serializer symfony/property-info symfony/property-access phpdocumentor/reflection-docblock
require __DIR__ . '/vendor/autoload.php';
use Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor;
use Symfony\Component\PropertyInfo\PropertyInfoExtractor;
use Symfony\Component\Serializer\Encoder\JsonEncoder;
use Symfony\Component\Serializer\Normalizer\ArrayDenormalizer;
lsv /
Last active Nov 11, 2019
KNP Menu Bundle - Bootstrap 4 and Font Awesome 4
lsv / Menu.php
Last active Jan 11, 2020
Symfony 4 - KnpMenuBundle - menu with event
View Menu.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;
lsv / settings.json
Created Jun 21, 2017
visualstudio code settings
View settings.json
"editor.renderIndentGuides": false,
"workbench.iconTheme": "material-icon-theme",
"workbench.colorTheme": "Dracula",
"files.autoSave": "onFocusChange",
"editor.fontSize": 18,
"": false,
"workbench.welcome.enabled": false,
"npm-intellisense.scanDevDependencies": true,
"beautify.language": {
You can’t perform that action at this time.