Skip to content

Instantly share code, notes, and snippets.

{namespace ro=Vendor\Package\ViewHelpers}
<section id="tab-user-2" class="tabPane">
<div class="fieldContainer">
<div class="accounts">
<f:for each="{user.accounts}" as="account">
<div class="account">
<p class="fieldRowLabel">{account.accountIdentifier}</p>
<div class="rolesContainer">
<table class="roles" cellspacing="0">
######################################################################
# Copyright notice
#
# (c) 2013 webconsulting business services gmbh (office@webconsulting.at)
# All rights reserved
#
# Based on work of various TYPO3 authors.
#
# This script is part of the TYPO3 project. The TYPO3 project is

Install XHProf

Pear

sudo pear upgrade PEAR
sudo pecl install xhprof-0.9.2

From source

//create logger
$this->logger = \TYPO3\Flow\Log\LoggerFactory::create('myLoggerName', 'TYPO3\Flow\Log\Logger', '\TYPO3\Flow\Log\Backend\FileBackend', array(
'logFileURL' => FLOW_PATH_DATA . 'Logs/myLoggerName.log',
'createParentDirectories' => TRUE,
'severityThreshold' => LOG_INFO,
'maximumLogFileSize' => 10485760,
'logFilesToKeep' => 1,
'logIpAddress' => TRUE
));
<?php
namespace My\Package\Service;
use TYPO3\Flow\Annotations as Flow;
/**
* @Flow\Scope("singleton")
*/
class EmailService {
<?php
namespace Ag\Utility\Log\Backend;
use TYPO3\Flow\Annotations as Flow;
class EmailBackend extends \TYPO3\Flow\Log\Backend\AbstractBackend {
/**
* @var string|array
*/
# Use an own publishing configuration
TYPO3\Flow\Resource\Publishing\ResourcePublishingTargetInterface:
className: Venodor\Package\Resource\Publishing\SecureFileSystemPublishingTarget
import json
import requests
from requests_oauthlib import OAuth1
consumer_key='key'
consumer_secret='secret'
access_token_key='t_key'
access_token_secret='t_secret'
# #
# Security policy for the TYPO3 package #
# #
resources:
methods:
ADU: 'method(Famelo\ADU\(?!.*Login).*->.*())'
roles:
Administrator: [ Editor ]
<f:layout name="Default" />
<f:section name="Content">
<div class="content">
<section class="body">
<f:form action="authenticate" method="post">
<fieldset>
<legend></legend>
<div class="row username">
<label id="usernameLabel" for="username" class="placeholder"><span><f:translate package="TYPO3.Flow">Username</f:translate></span></label>