Skip to content

Instantly share code, notes, and snippets.

View skurfuerst's full-sized avatar
☀️

Sebastian Kurfürst skurfuerst

☀️
View GitHub Profile

/* Buttons

Use the standard, but classy, .button for form actions and primary actions.

foo bar

<h2>Foo</h2>
a
a:3:{i:0;O:36:"TYPO3\Flow\Mvc\FlashMessageContainer":1:{s:11:"*messages";a:0:{}}i:1;O:27:"TYPO3\Flow\Security\Context":5:{s:9:"*tokens";a:2:{s:18:"Typo3SetupProvider";O:54:"TYPO3\Flow\Security\Authentication\Token\PasswordToken":5:{s:29:"*authenticationProviderName";s:18:"Typo3SetupProvider";s:23:"*authenticationStatus";i:1;s:10:"*account";N;s:18:"*requestPatterns";a:1:{i:0;O:55:"TYPO3\Flow\Security\RequestPattern\ControllerObjectName":1:{s:30:"*controllerObjectNamePattern";s:25:"TYPO3\Setup\Controller\.*";}}s:13:"*entryPoint";O:57:"TYPO3\Flow\Security\Authentication\EntryPoint\WebRedirect":2:{s:13:"*uriBuilder";O:33:"TYPO3\Flow\Mvc\Routing\UriBuilder":9:{s:10:"*request";N;s:12:"*arguments";a:0:{}s:16:"*lastArguments";a:0:{}s:10:"*section";s:0:"";s:20:"*createAbsoluteUri";b:0;s:17:"*addQueryString";b:0;s:39:"*argumentsToBeExcludedFromQueryString";a:0:{}s:9:"*format";N;s:24:"*linkProtectionEnabled";b:1;}s:10:"*options";a:1:{s:3:"uri";s:11:"setup/login";}}}s:20:"Typo3BackendProvider";O:57:"TYPO3\Flow\Security\A
diff --git a/class.tx_nawsecuredl.php b/class.tx_nawsecuredl.php
index 0cb062e..33688c2 100644
--- a/class.tx_nawsecuredl.php
+++ b/class.tx_nawsecuredl.php
@@ -200,23 +200,10 @@ class tx_nawsecuredl {
* Returns a case insensitive regular expression based on
* lowercase input
*
- * Example:
- * Input: pdf|jpe?g
object: null,
property: null,
value: null,
_updateValueBindingIfObjectOrPropertyChanges: ((k, v)->
Ember.bind(this, 'value', 'object.' + @get('property'))
).observes('object', 'property'),
@skurfuerst
skurfuerst / TYPO3.FLOW3.reflection.schema.yaml
Created May 30, 2012 07:24
TYPO3.FLOW3.persistence.schema.yaml
type: dictionary
additionalProperties: false
properties:
'ignoredTags':
type: array
items: { type: string }
'logIncorrectDocCommentHints': { type: boolean }
<?php
class ImageController {
public function newProfilePictureAction() {
}
/**
* @param \TYPO3\Media\Domain\Model\Image $newImage
* @FLOW3\Validate("$newImage", type="\TYPO3\Media\Validator\ImageSizeValidator", options={ "minimumWidth"=180, "minimumHeight"=180 })
* @FLOW3\Validate("$newImage", type="\TYPO3\Media\Validator\ImageTypeValidator", options={ "allowedTypes"={"jpeg","png","gif"} })
* @return void
TYPO3:
FLOW3:
security:
cryptography:
RSAWalletServicePHP:
keystorePath: '/var/www/t3con12-quebec.typo3.org/releases/current/Data/Persistent/RsaWalletKeyStore'
authentication:
authenticationStrategy: atLeastOneToken
providers:
# redirect to login page when trying to access restricted pages
protected function renderCellCSSClass($fieldSet, Tx_PtExtlist_Domain_Configuration_ColumnConfigInterface $columnConfig) {
$cellCSSConfig = $columnConfig->getCellCSSClass();
if(is_array($cellCSSConfig)) {
$renderObj = array_key_exists('renderObj', $cellCSSConfig) ? Tx_Extbase_Utility_TypoScript::convertPlainArrayToTypoScriptArray(array('renderObj' => $cellCSSConfig['renderObj'])) : NULL;
$renderUserFunction = array_key_exists('renderUserFunction', $cellCSSConfig) ? $cellCSSConfig['renderUserFunction'] : NULL;
return Tx_PtExtlist_Utility_RenderValue::render($fieldSet, $renderObj, $renderUserFunction);
} else {
return $cellCSSConfig;
-
name: 'default with action and format'
uriPattern: '{@package}/{@controller}/{@action}(.{@format})'
defaults:
'@format': 'html'
appendExceedingArguments: true # I think this is missing here
TYPO3:
FLOW3:
error:
exceptionHandler:
className: 'MyPackageKey\MorePackageKey\Exception\ProductionExceptionHandler'
errorHandler:
exceptionalErrors: [%E_USER_ERROR%, %E_RECOVERABLE_ERROR%, %E_WARNING%, %E_NOTICE%, %E_USER_WARNING%, %E_USER_NOTICE%, %E_STRICT%]