-
Notifications
You must be signed in to change notification settings - Fork 4
/
CCDNComponentCrumbTrailBundle.php
42 lines (36 loc) · 1.09 KB
/
CCDNComponentCrumbTrailBundle.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
<?php
/*
* This file is part of the CCDNComponent CrumbTrailBundle
*
* (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 CCDNComponent\CrumbTrailBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
*
* @author Reece Fowell <reece@codeconsortium.com>
* @version 1.0
*/
class CCDNComponentCrumbTrailBundle extends Bundle
{
/**
*
* @access public
*/
public function boot()
{
$twig = $this->container->get('twig');
$twig->addGlobal('ccdn_component_crumb_trail', array(
'crumb' => array(
'first_crumb_truncate' => $this->container->getParameter('ccdn_component_crumb_trail.crumb.first_crumb_truncate'),
'mid_crumb_truncate' => $this->container->getParameter('ccdn_component_crumb_trail.crumb.mid_crumb_truncate'),
'last_crumb_truncate' => $this->container->getParameter('ccdn_component_crumb_trail.crumb.last_crumb_truncate'),
),
));
}
}