feat: add Contao 5.7 pinboard bundle
This commit is contained in:
11
contao/config/config.php
Normal file
11
contao/config/config.php
Normal 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;
|
||||
22
contao/config/services.yaml
Normal file
22
contao/config/services.yaml
Normal 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 }
|
||||
Reference in New Issue
Block a user