Skip to content

Instantly share code, notes, and snippets.

View dogawaf's full-sized avatar

Rémy DANIEL dogawaf

View GitHub Profile
@dogawaf
dogawaf / PageContentErrorHandler.php
Created September 25, 2020 11:29
Keep redirecting old realurl urls after migrating to TYPO3 9+
<?php
namespace Site\Site\ErrorHandler;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Site\Site\Service\RealurlRedirectService;
use TYPO3\CMS\Core\Site\Entity\Site;
use TYPO3\CMS\Core\Site\Entity\SiteLanguage;
@dogawaf
dogawaf / TypolinkFileHandler.php
Created October 7, 2018 11:56
Overrides typolink to add file's extension and weight to the generated link
<?php
namespace Site\Site\Hooks;
class TypolinkFileHandler
{
/**
* @param array $params
* @param \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $parentObject
*/
@dogawaf
dogawaf / ContentController.php
Created November 10, 2014 15:55
FLOW - delete image resource
<?php
namespace ACME\Admin\Controller;
use TYPO3\Flow\Annotations as Flow;
/**
* Class ContentController
*/
class ContentController extends \TYPO3\Flow\Mvc\Controller\ActionController