This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
error_reporting(E_ALL); | |
$aliasMapFile = '/Migrations/Code/ClassAliasMap.php'; | |
$ideFile = '/Migrations/Code/LegacyClassesForIde.php'; | |
$extensionDir = getcwd() . '/typo3/sysext/'; | |
$map = array(); | |
$iterator = new DirectoryIterator($extensionDir); | |
foreach ($iterator as $fileinfo) { | |
/** @var $fileinfo DirectoryIterator */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "helhum/typo3-62-composer-classloader", | |
"description": "Benefit from composer class loader power in TYPO3 6.2", | |
"authors": [ | |
{ | |
"name": "Helmut Hummel", | |
"email": "info@helhum.io" | |
} | |
], | |
"require": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Helhum\IncludeLibsWrapper; | |
class IncludeLibsWrapper { | |
public function includeLibs($content, $conf) { | |
if (!empty($conf['includeLibs.'] && is_array($conf['includeLibs.']))) { | |
$GLOBALS['TSFE']->includeLibraries($conf['includeLibs.']); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace MyVendor\MyExtension\Property\TypeConverters | |
use TYPO3\CMS\Extbase\Property\TypeConverter\PersistentObjectConverter | |
class MyPersistentObjectConverter extends PersistentObjectConverter { | |
/** | |
* @var string | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Baz; | |
use Bar\Foo; | |
define('LF', chr(10)); | |
spl_autoload_register(function($className){ | |
echo 'trying to load class: ' . $className . LF; | |
}); | |
echo LF . 'starting ...' . LF; | |
$a = Foo::class; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Helhum\YourSitePackage\Hooks; | |
/*************************************************************** | |
* Copyright notice | |
* | |
* (c) 2014 Helmut Hummel <helmut.hummel@typo3.org> | |
* All rights reserved | |
* | |
* This script is part of the TYPO3 project. The TYPO3 project is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function surf() { | |
if ([ "$#" == "1" ] && [ "$1" == "help" ]) || [ "$#" == "0" ] | |
then | |
./flow help surf | |
return $? | |
fi | |
if [ "$1" == "help" ] | |
then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<f:form.validationResults for="{propertyPath}"> | |
<f:if condition="{validationResults.flattenedErrors}"> | |
<ul> | |
<f:for each="{validationResults.flattenedErrors}" as="errors"> | |
<li> | |
<ul> | |
<f:for each="{errors}" as="error"><li>{error}</li></f:for> | |
</ul> | |
</li> | |
</f:for></ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function search-branches() { | |
for sha1 in `git log --oneline --all --grep "$1" | cut -d" " -f1` | |
do | |
git branch -r --contains $sha1 | |
done | |
} | |
function search-tags() { | |
for sha1 in `git log --oneline --all --grep "$1" | cut -d" " -f1` | |
do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
error_reporting(E_ALL); | |
class request {} | |
class_alias('request', 'old_request'); | |
interface foo { | |
public function baz(\request $request); | |
} |