1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,10 @@ |
1 |
+services: |
|
2 |
+ _defaults: |
|
3 |
+ autowire: true |
|
4 |
+ autoconfigure: true |
|
5 |
+ public: false |
|
6 |
+ |
|
7 |
+ vonRotenberg\WeinanlieferungBundle\: |
|
8 |
+ resource: ../src |
|
9 |
+ exclude: ../src/{VonrotenbergWeinanlieferungBundle.php,ContaoManager,Entity,Migrations,Model,Resources,Tests,Widget} |
|
10 |
+ |
0 | 11 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,26 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+declare(strict_types=1); |
|
4 |
+ |
|
5 |
+/* |
|
6 |
+ * This file is part of contao-weinanlieferung-bundle. |
|
7 |
+ * |
|
8 |
+ * (c) vonRotenberg |
|
9 |
+ * |
|
10 |
+ * @license commercial |
|
11 |
+ */ |
|
12 |
+ |
|
13 |
+namespace vonRotenberg\WeinanlieferungBundle\EventListener\DataContainer; |
|
14 |
+ |
|
15 |
+use Contao\CoreBundle\ServiceAnnotation\Callback; |
|
16 |
+ |
|
17 |
+class WeinanlieferungSlotContainerListener |
|
18 |
+{ |
|
19 |
+ /** |
|
20 |
+ * @Callback(table="tl_vr_wa_slot", target="list.sorting.child_record") |
|
21 |
+ */ |
|
22 |
+ public function onChildRecordCallback(array $row) |
|
23 |
+ { |
|
24 |
+ return sprintf('%s %s',$row['date'],$row['time']); |
|
25 |
+ } |
|
26 |
+} |