Skip to content

Instantly share code, notes, and snippets.

View svparijs's full-sized avatar

Sebastiaan van Parijs svparijs

View GitHub Profile
<?php
namespace Acme\JobQueueTest;
/* *
* This script belongs to the TYPO3 Flow package "Acme.JobQueueTest". *
* *
* */
use TYPO3\Flow\Annotations as Flow;
use TYPO3\Flow\Utility\Files;
<?php
namespace My\Package\Service;
use TYPO3\Flow\Annotations as Flow;
/**
* @Flow\Scope("singleton")
*/
class EmailService {
<?php
namespace Smichaelsen\Gist\Mail;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext;
/**
* This class represents an email which can be rendered with fluid.
* You can use all the possibilities of TYPO3's MailMessage but instead of
@svparijs
svparijs / PdfJob.php
Last active August 29, 2015 14:06 — forked from bwaidelich/PdfJob.php
<?php
namespace Acme\JobQueueTest;
/* *
* This script belongs to the TYPO3 Flow package "Acme.JobQueueTest". *
* *
* */
use TYPO3\Flow\Annotations as Flow;
use TYPO3\Flow\Utility\Files;
@svparijs
svparijs / Caches.yaml
Last active August 29, 2015 14:22 — forked from aertmann/Caches.yaml
Flow_Session_Storage:
backendOptions:
cacheDirectory: '%FLOW_PATH_DATA%Session/Flow_Session_Storage'
Flow_Session_MetaData:
backendOptions:
cacheDirectory: '%FLOW_PATH_DATA%Session/Flow_Session_MetaData'
Uncaught exception #1301610453: Could not resolve a route and its corresponding URI for the given parameters. This may be due to referring to a not existing package / controller / action while building a link or URI. Refer to log and check the backtrace for more details.
71 TYPO3\Fluid\ViewHelpers\Link\ActionViewHelper_Original::render((show)show, array, (Solution)Solution, (Company.Solutions)Company.Solutions, NULL, (), (), array, boolean, array)
70 call_user_func_array(array, array)
69 TYPO3\Fluid\Core\ViewHelper\AbstractViewHelper::callRenderMethod()
68 TYPO3\Fluid\Core\ViewHelper\AbstractViewHelper::initializeArgumentsAndRender()
@svparijs
svparijs / gist:3814152
Created October 1, 2012 20:16
Error while loading custom site
Uncaught exception #1301610453 in line 182 of /var/www/Tryweb.base/Data/Temporary/Development/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_Mvc_Routing_Router.php: Could not resolve a route and its corresponding URI for the given parameters. This may be due to referring to a not existing package / controller / action while building a link or URI. Refer to log and check the backtrace for more details.
64 TYPO3\FLOW3\Mvc\Routing\Router_Original::resolve(array|5|)
63 TYPO3\FLOW3\Mvc\Routing\Router::resolve(array|5|)
62 call_user_func_array(array|2|, array|1|)
61 TYPO3\FLOW3\Mvc\Routing\Router::FLOW3_Aop_Proxy_invokeJoinPoint(TYPO3\FLOW3\Aop\JoinPoint)
60 TYPO3\FLOW3\Aop\Advice\AdviceChain::proceed(TYPO3\FLOW3\Aop\JoinPoint)
59 TYPO3\FLOW3\Mvc\Routing\Aspect\RouterCachingAspect_Original::cacheResolveCall(TYPO3\FLOW3\Aop\JoinPoint)
58 TYPO3\FLOW3\Aop\Advice\AroundAdvice::invoke(TYPO3\FLOW3\Aop\JoinPoint)
57 TYPO3\FLOW3\Aop\Advice\AdviceChain::proceed(TYPO3\FLOW3\Aop\JoinPoint)
@svparijs
svparijs / katzenet-production.php
Created October 16, 2012 12:51 — forked from brgmn/katzenet-production.php
TYPO3 Surf sample configuration (github, TYPO3 Flow, ubuntu server) -> place this at /Build/Surf/ and deploy with ./flow surf:deploy katzenet-production
<?php
use \TYPO3\Surf\Domain\Model\Workflow;
use \TYPO3\Surf\Domain\Model\Node;
use \TYPO3\Surf\Domain\Model\SimpleWorkflow;
$application = new \TYPO3\Surf\Application\FLOW3();
$application->setOption('repositoryUrl', 'git@github.com:katzeag/Katzenet.git');
$application->setDeploymentPath('/var/www/katzenet-app');
$application->setOption('keepReleases', 20);
$application->setOption('composerCommandPath', '/usr/bin/composer');
<f:layout name="Default" />
<f:section name="Title">Account - Login</f:section>
<f:section name="Content">
<div class="row form-alignment">
<div class="offset3 span6 loginbox">
<f:form name="login" class="form-horizontal well" action="authenticate">
<fieldset>
<div id="legend">
@svparijs
svparijs / Alias.php
Created November 21, 2012 14:32
Inline Objects added
<?php
namespace BKWI\Kernkaart\Domain\Model;
/**
* This script belongs to the TYPO3 Flow package "BKWI.Kernkaart". *
* *
* */
use TYPO3\Flow\Annotations as Flow;
use Doctrine\ORM\Mapping as ORM;