feat: add Contao 5.7 pinboard bundle

This commit is contained in:
Jürgen Mummert
2026-03-04 15:44:07 +01:00
commit 47b5199c54
15 changed files with 619 additions and 0 deletions

11
contao/config/config.php Normal file
View File

@@ -0,0 +1,11 @@
<?php
declare(strict_types=1);
use Eiswurm\ContaoPinboardBundle\Model\PinboardModel;
$GLOBALS['BE_MOD']['content']['pinnwand'] = [
'tables' => ['tl_pinnwand'],
];
$GLOBALS['TL_MODELS']['tl_pinnwand'] = PinboardModel::class;

View File

@@ -0,0 +1,22 @@
services:
_defaults:
autowire: true
autoconfigure: true
Eiswurm\ContaoPinboardBundle\:
resource: '../../src/*'
exclude:
- '../../src/ContaoManager/'
- '../../src/ContaoPinboardBundle.php'
Eiswurm\ContaoPinboardBundle\Controller\FrontendModule\PinboardController:
tags:
-
name: contao.frontend_module
category: application
type: pinnwand
template: frontend_module/pinnwand
Eiswurm\ContaoPinboardBundle\EventListener\DataContainer\PinboardTimestampListener:
tags:
- { name: contao.callback, table: tl_pinnwand, target: config.onsubmit }