Skip to content

Instantly share code, notes, and snippets.

View radmiraal's full-sized avatar

Rens Admiraal radmiraal

View GitHub Profile
<?php
namespace Acme\Company\Mvc\Routing;
use TYPO3\Flow\Annotations as Flow;
use TYPO3\Flow\Utility\Arrays;
/**
* @Flow\Scope("singleton")
*/
class UriBuilder extends \TYPO3\Flow\Mvc\Routing\UriBuilder {
$pluginSignature = str_replace('_','',$_EXTKEY) . '_list';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
t3lib_extMgm::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/flexform_list.xml');
$availableControllerActions = array(
'News' => 'latest,mostPopular,list,breadcrumb',
'Product' => 'list',
'Event' => 'list',
'Training' => 'list'
);
Tx_Extbase_Utility_Extension::configurePlugin(
$_EXTKEY,
'List',
use TYPO3\Flow\Annotations as Flow;
/**
* Trait which can be used to add automatic storage of
* unknown class properties into a related CouchDB document.
*/
trait EntityWithDocumentTrait {
/**
* @var string
repositories: [
{
"type": "git",
"url": "git://github.com/radmiraal/Radmiraal.CouchDB.git"
}
]
....
Domain model config:
Domain object settings > Extend existing model class: \TYPO3\CMS\Extbase\Domain\Model\FrontendUser
FILE: ...amework/TYPO3.Flow/Classes/TYPO3/Flow/Aop/Builder/ProxyClassBuilder.php
--------------------------------------------------------------------------------
FOUND 7 ERROR(S) AND 4 WARNING(S) AFFECTING 11 LINE(S)
--------------------------------------------------------------------------------
258 | WARNING | Code after THROW statement cannot be executed
259 | WARNING | Code after THROW statement cannot be executed
260 | WARNING | Code after THROW statement cannot be executed
261 | WARNING | Code after THROW statement cannot be executed
479 | ERROR | Whitespace must be added after single asteriks expected "*
#!/bin/bash -e
if [[ "$GERRIT_CHANGE_SUBJECT" =~ ^(\[!!!\])?\[WIP\] ]]; then
echo 'WIP changes should not be merged';
exit 1;
fi
composer install --dev --no-interaction
mkdir -p Build/Reports/
#!/bin/bash
{
"name": "phpcs/example",
"repositories": [
{
"type": "git",
"url": "git://github.com/radmiraal/TYPO3Flow.git"
},
{
"type": "git",
"url": "git://github.com/radmiraal/TYPO3SniffPool.git"
#!/usr/bin/php
<?php
error_reporting(E_ALL ^ E_STRICT);
ini_set('display_errors', 1);
define('FLOW_PATH_ROOT', __DIR__ . DIRECTORY_SEPARATOR);
define('FLOW_PATH_PACKAGES', FLOW_PATH_ROOT . 'Packages' . DIRECTORY_SEPARATOR);
class Gerrit {