This file contains hidden or 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
composer create-project typo3/cms-base-distribution='^7.6.0' my-test-typo3 --no-interaction | |
cd my-test-typo3/ | |
composer require helhum/typo3-console | |
# This will only work with PHP < 7 as realurl need PHP 5.x | |
composer require typo3-ter/introduction | |
cp web/typo3conf/ext/typo3_console/Scripts/typo3cms . | |
cp web/typo3conf/ext/bootstrap_package/Configuration/Apache/.htaccess web/ | |
chmod +x typo3cms | |
./typo3cms install:setup --non-interactive --database-user-name="root" --database-user-password="root" --database-host-name="localhost" --database-port="3306" --database-name="t3_my_test" --admin-user-name="admin" --admin-password="password" --site-name="Auto Install" | |
./typo3cms database:updateschema '*.*' |
This file contains hidden or 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 hidden or 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": "[email protected]" | |
} | |
], | |
"require": { |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 <[email protected]> | |
* All rights reserved | |
* | |
* This script is part of the TYPO3 project. The TYPO3 project is |
This file contains hidden or 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 hidden or 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 hidden or 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 |