Skip to content

Instantly share code, notes, and snippets.

View pankajlele's full-sized avatar

Pankaj Lele pankajlele

  • Lelesys Infotech Pvt. Ltd.
  • India
View GitHub Profile
@pankajlele
pankajlele / DetectLanguageComponent.php
Last active August 31, 2015 20:44 — forked from bwaidelich/DetectLanguageComponent.php
A TYPO3 Flow HTTP component that detects the user agent language and redirects to the corresponding URL if no language has been requested explicitly.
<?php
namespace Wwwision\Test\Http;
/* *
* This script belongs to the TYPO3 Flow package "Wwwision.Test". *
* *
* */
use TYPO3\Flow\Annotations as Flow;
use TYPO3\Flow\Http\Component\ComponentChain;