Skip to content

Instantly share code, notes, and snippets.

@KaffDaddy
KaffDaddy / LanguageRedirect.php
Created May 26, 2020 18:59 — forked from einpraegsam/LanguageRedirect.php
TYPO3: Simply redirect a visitor to secondary language if browser does not support default language using PSR-15 Middleware
<?php
declare(strict_types=1);
namespace In2code\In2template\Middleware;
use CodeZero\BrowserLocale\BrowserLocale;
use CodeZero\BrowserLocale\Filters\LanguageFilter;
use In2code\In2template\Utility\ObjectUtility;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\MiddlewareInterface;
@KaffDaddy
KaffDaddy / ddev.sh
Created March 25, 2019 08:58 — forked from dacostafilipe/ddev.sh
bitbar Plugin for ddev
#!/bin/bash
# Display status of DDEV configs
#
#
# <bitbar.title>DDEV List</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>DA COSTA Filipe</bitbar.author>
#