-
Notifications
You must be signed in to change notification settings - Fork 8
/
CCDNMessageMessageBundle.php
65 lines (60 loc) · 2.32 KB
/
CCDNMessageMessageBundle.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
/*
* This file is part of the CCDNMessage MessageBundle
*
* (c) CCDN (c) CodeConsortium <http://www.codeconsortium.com/>
*
* Available on github <http://www.github.com/codeconsortium/>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace CCDNMessage\MessageBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
*
* @category CCDNMessage
* @package MessageBundle
*
* @author Reece Fowell <[email protected]>
* @license http://opensource.org/licenses/MIT MIT
* @version Release: 2.0
* @link https://github.com/codeconsortium/CCDNMessageMessageBundle
*
*/
class CCDNMessageMessageBundle extends Bundle
{
/**
*
* @access public
*/
public function boot()
{
$twig = $this->container->get('twig');
$twig->addGlobal(
'ccdn_message_message',
array(
'seo' => array(
'title_length' => $this->container->getParameter('ccdn_message_message.seo.title_length'),
),
'folder' => array(
'show' => array(
'layout_template' => $this->container->getParameter('ccdn_message_message.folder.show.layout_template'),
'subject_truncate' => $this->container->getParameter('ccdn_message_message.folder.show.subject_truncate'),
'sent_datetime_format' => $this->container->getParameter('ccdn_message_message.folder.show.sent_datetime_format'),
),
),
'message' => array(
'show' => array(
'layout_template' => $this->container->getParameter('ccdn_message_message.message.show.layout_template'),
'sent_datetime_format' => $this->container->getParameter('ccdn_message_message.message.show.sent_datetime_format'),
),
'compose' => array(
'layout_template' => $this->container->getParameter('ccdn_message_message.message.compose.layout_template'),
'form_theme' => $this->container->getParameter('ccdn_message_message.message.compose.form_theme'),
),
),
)
); // End Twig Globals.
}
}