-
Notifications
You must be signed in to change notification settings - Fork 0
/
CCDNUserMemberBundle.php
46 lines (40 loc) · 1.08 KB
/
CCDNUserMemberBundle.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
<?php
/*
* This file is part of the CCDNUser MemberBundle
*
* (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 CCDNUser\MemberBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
*
* @author Reece Fowell <reece@codeconsortium.com>
* @version 1.0
*/
class CCDNUserMemberBundle extends Bundle
{
/**
*
* @access public
*/
public function boot()
{
$twig = $this->container->get('twig');
$twig->addGlobal('ccdn_user_member', array(
'seo' => array(
'title_length' => $this->container->getParameter('ccdn_user_member.seo.title_length'),
),
'member' => array(
'list' => array(
'layout_template' => $this->container->getParameter('ccdn_user_member.member.list.layout_template'),
'member_since_datetime_format' => $this->container->getParameter('ccdn_user_member.member.list.member_since_datetime_format'),
),
),
));
}
}