Project

General

Profile

Feature #96652 » test.php

Oliver Hader, 2022-01-26 11:46

 
<?php

use TYPO3\CMS\Core\Resource\Rendering\VimeoRenderer;
use TYPO3\CMS\Core\Utility\GeneralUtility;

class Test
{
public function execute()
{
$renderer = GeneralUtility::makeInstance(VimeoRenderer::class);
$otherVariable = $renderer;

/*
// focussing on this declaration --> max 4 args
'TYPO3\CMS\Core\Resource\Rendering\VimeoRenderer->render' => [
'maximumNumberOfArguments' => 4,
'restFiles' => [
'Breaking-96205-RemovalOfLastRelativeToCurrentScriptRemains.rst',
],
],
*/
// types are not relevant here, just the 5th arg
$otherVariable->render(1, 2, 3, 4, 5);
}
}
(3-3/4)