Skip to content

Instantly share code, notes, and snippets.

View christianfutterlieb's full-sized avatar

Christian Futterlieb christianfutterlieb

View GitHub Profile
/**
* Makes sure that both configuration arrays contain the same structure of keys
* in persistence.storagePid.
*
* @param array $frameworkConfiguration
* @param array $newConfiguration
*/
protected function adjustStoragePidStructureBeforeMerge(array &$frameworkConfiguration, array &$newConfiguration): void
{
if (isset($newConfiguration['persistence']['storagePid']) && !empty($newConfiguration['persistence']['storagePid'])) {
@christianfutterlieb
christianfutterlieb / urldata_query_speed.sql
Last active November 1, 2017 10:38
urldata query speed analysis in TYPO3 extension realurl
--
-- urldata query speed analysis in TYPO3 extension realurl
-- -------------------------------------------------------
--
-- author: Christian Futterlieb
-- date: 2017-05-30
--
-- note: Define the correct rootpage_id below!
-- -------------------------------------------------------
<?php
/**
* Polyfill for PHP's hash_equals()
*
* The function behaves the same way as the original, including
* error messages and return values.
*
* https://gist.github.com/christianfutterlieb/3cf85bc3fe16c70c0442
*