Skip to content

Instantly share code, notes, and snippets.

View geldmacher's full-sized avatar
😁
https://giphy.com/gifs/OR2JV6cRaVkdvtPg1d/html5

Dennis Geldmacher geldmacher

😁
https://giphy.com/gifs/OR2JV6cRaVkdvtPg1d/html5
View GitHub Profile
@geldmacher
geldmacher / AllowedAttributes.php
Last active September 14, 2021 11:43
TYPO3 Hotfix for missing "filterUnits" attribute in the new SvgSanitizer (https://github.com/darylldoyle/svg-sanitizer/pull/41)
<?php
declare(strict_types=1);
namespace Vendor\ExtensionName\SvgSanitizer;
use enshrined\svgSanitize\data\AllowedAttributes as OriginalAllowedAttributes;
/**
* Class AllowedAttributes
@geldmacher
geldmacher / ConditionFunctionsProvider.php
Last active February 16, 2023 16:37
Custom TYPO3 condition for checking if a specific extension is loaded (with custom Symfony ExpressionLanguage provider)
<?php
declare(strict_types=1);
namespace Vendor\Extension\ExpressionLanguage\FunctionsProvider;
use Symfony\Component\ExpressionLanguage\ExpressionFunction;
use Symfony\Component\ExpressionLanguage\ExpressionFunctionProviderInterface;
/**
@geldmacher
geldmacher / ConditionFunctionsProvider.php
Last active August 17, 2020 08:14
Custom TYPO3 condition for a configurable date period (with custom Symfony ExpressionLanguage provider)
<?php
declare(strict_types=1);
namespace Vendor\Extension\ExpressionLanguage\FunctionsProvider;
use Symfony\Component\ExpressionLanguage\ExpressionFunction;
use Symfony\Component\ExpressionLanguage\ExpressionFunctionProviderInterface;
/**
@geldmacher
geldmacher / Keybase proof
Created January 15, 2019 08:06
Keybase proof
### Keybase proof
I hereby claim:
* I am geldmacher on github.
* I am geldmacher84 (https://keybase.io/geldmacher84) on keybase.
* I have a public key ASDjVxBL0JyaHxLFjrS7u2uRs5I01EHAMqQx0muscomcEwo
To claim this, I am signing this object: