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 / ConsoleOutputTrait.php
Created July 29, 2017 11:02
This trait can be used to write console output from service classes.
<?php
namespace Yout\Package\Command;
/*
* This script belongs to the Flow package "Your.Package".
*/
use TYPO3\Flow\Cli\ConsoleOutput;
/**
@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;
<neos:contentElement node="{node}">
<blockquote cite="{f:uri.external(uri: '{sourceurl}', defaultScheme: 'http')}">
<neos:contentElement.editable property="title">
{node.properties.title->f:format.raw()}
</neos:contentElement.editable>
</blockquote>
</neos:contentElement>