-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCCDNComponentAttachmentBundle.php
More file actions
50 lines (44 loc) · 1.4 KB
/
CCDNComponentAttachmentBundle.php
File metadata and controls
50 lines (44 loc) · 1.4 KB
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
<?php
/*
* This file is part of the CCDNComponent AttachmentBundle
*
* (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\AttachmentBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
*
* @author Reece Fowell <reece@codeconsortium.com>
* @version 1.0
*/
class CCDNComponentAttachmentBundle extends Bundle
{
/**
*
* @access public
*/
public function boot()
{
$twig = $this->container->get('twig');
$twig->addGlobal('ccdn_component_attachment', array(
'seo' => array(
'title_length' => $this->container->getParameter('ccdn_component_attachment.seo.title_length'),
),
'manage' => array(
'list' => array(
'attachment_uploaded_datetime_format' => $this->container->getParameter('ccdn_component_attachment.manage.list.attachment_uploaded_datetime_format'),
'layout_template' => $this->container->getParameter('ccdn_component_attachment.manage.list.layout_template'),
),
'upload' => array(
'layout_template' => $this->container->getParameter('ccdn_component_attachment.manage.upload.layout_template'),
'form_theme' => $this->container->getParameter('ccdn_component_attachment.manage.upload.form_theme'),
),
),
));
}
}