Commit ac1d3733 authored by Thomas Löffler's avatar Thomas Löffler
Browse files

[RELEASE] Version 3.0.0

* Add v11 functionality
parent d2ae1b32
Pipeline #24916 failed with stages
in 1 minute and 47 seconds
......@@ -14,7 +14,9 @@ namespace T3o\Randombanners\Controller;
* The TYPO3 project - inspiring people to share!
*/
use Psr\Http\Message\ResponseInterface;
use T3o\Randombanners\Domain\Repository\BannerRepository;
use TYPO3\CMS\Core\Http\HtmlResponse;
use TYPO3\CMS\Core\Page\PageRenderer;
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController;
......@@ -36,11 +38,13 @@ class BannerController extends ActionController
$this->bannerRepository = $bannerRepository;
}
public function indexAction()
public function indexAction(): ResponseInterface
{
$this->objectManager->get(PageRenderer::class)
->addJsFooterFile('EXT:randombanners/Resources/Public/Javascript/randombanners.js');
$this->view->assign('banners', $this->bannerRepository->findAll());
$this->view->assign('contentData', $this->configurationManager->getContentObject()->data);
return new HtmlResponse($this->view->render());
}
}
......@@ -6,11 +6,9 @@
"license": [
"GPL-2.0+"
],
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"typo3/cms-core": ">=10.3.0,<10.9.99",
"typo3/cms-scheduler": ">=10.3.0,<10.9.99"
"typo3/cms-core": "^11.5",
"typo3/cms-scheduler": "^11.5"
},
"keywords": [
"TYPO3 CMS"
......
......@@ -8,8 +8,8 @@ $EM_CONF['randombanners'] = [
'category' => 'extension',
'constraints' => [
'depends' => [
'typo3' => '10.3.0-10.99.99',
'scheduler' => '10.3.0-10.99.99',
'typo3' => '11.5.0-11.5.99',
'scheduler' => '11.5.0-11.5.99',
],
'conflicts' => [],
],
......@@ -22,5 +22,5 @@ $EM_CONF['randombanners'] = [
'uploadfolder' => 0,
'createDirs' => '',
'clearcacheonload' => 0,
'version' => '2.1.2',
'version' => '3.0.0',
];
......@@ -6,11 +6,5 @@ defined('TYPO3_MODE') or die();
'Pi1',
[
\T3o\Randombanners\Controller\BannerController::class => 'index',
],
// non-cacheable actions
[
]
);
// AJAX
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['randombanners'] = \T3o\Randombanners\Eid\RandombannersEidController::class . '::countClick';
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment