Skip to content

Instantly share code, notes, and snippets.

View radmiraal's full-sized avatar

Rens Admiraal radmiraal

View GitHub Profile
variables.someweirdname = TEXT
variables.someweirdname.value = Another weird name
@radmiraal
radmiraal / .php
Created September 19, 2012 07:36
/**
* Call an inaccessible method on an object, marks test skipped if method could not be called
*
* @param object $object An instance of a class
* @param string $methodName Name of the protected method
* @param array $arguments
* @param string $originalClassName Set this value if you want to call methods on a mock object
* @return mixed The return value of the method
*/
protected function callInaccessibleMethod($object, $methodName, array $arguments = array(), $originalClassName = NULL) {
object:
registerFunctionalTestClasses: false
excludeClasses:
Doctrine.Common:
- '.*'
Doctrine.ORM:
- '.*'
Doctrine.DBAL:
- '.*'
doctrine.migrations:
<?php
namespace Radmiraal\Iks\Aop;
use TYPO3\FLOW3\Annotations as FLOW3;
/**
* @FLOW3\Aspect
*/
class HomePageProtectionAspect {
{
"name": "typo3/flow3-base-distribution",
"description" : "FLOW3 Base Distribution",
"license": "LGPL-3.0+",
"repositories": [
{
"type": "package",
"package": {
"name": "typo3/phoenix",
"version": "dev-master",
{
"name": "somename",
"description": "Some Distribution",
"repositories": [
{
"type": "composer",
"url": "http://ci.typo3.robertlemke.net/job/composer-packages/ws/repository/"
}
],
"config": {
/**
* Register template generation callbacks.
*
* For adding new content elements VIE needs an HTML template. This method registers callback methods
* for generating those templates. The template itself is rendered on the server, and contains the
* rendered output of the requested content type, rendered within the current typoscript path.
*
* @return {Void}
*/
_registerVieContentTypeTemplateCallbacks: function() {
<!DOCTYPE html>{namespace bootstrap=TYPO3\Twitter\Bootstrap\ViewHelpers}{namespace typoscript=TYPO3\TypoScript\ViewHelpers}
<html>
<head>
<title>Mister Maks</title>
<f:base />
<f:render partial="HeaderInclude" arguments="{_all}" />
</head>
<body>
if ($this->controllerContext->getRequest()->getParentRequest() instanceof \TYPO3\Flow\Http\Request) {
// Check for Scaff subrequest
if ($this->controllerContext->getRequest()->getParentRequest()->getArgument('--content')) {
\TYPO3\Flow\var_dump($this->controllerContext->getRequest()->getParentRequest()->getArgument('--content'));
}
}
Flow Variable Dump
TYPO3\Flow\Mvc\ActionRequestprototypeobjectproxy
objectManager => TYPO3\Flow\Object\ObjectManagersingletonobject
hashService => TYPO3\Flow\Security\Cryptography\HashServicesingletonobjectproxy
packageManager => TYPO3\Flow\Package\PackageManagersingletonobject
controllerPackageKey => 'Beech.Ehrm' (10)
controllerSubpackageKey => NULL
controllerName => 'Management\Administration' (25)
controllerActionName => 'index' (5)
arguments => array(1)