forked from mage-websd/extensiongsd
/
Renderer.php
67 lines (60 loc) · 1.74 KB
/
Renderer.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
66
67
<?php
/**
* * You are allowed to use this API in your web application.
*
* Copyright (C) 2015 by customweb GmbH
*
* This program is licenced under the customweb software licence. With the
* purchase or the installation of the software in your application you
* accept the licence agreement. The allowed usage is outlined in the
* customweb software licence which can be found under
* http://www.sellxed.com/en/software-license-agreement
*
* Any modification or distribution is strictly forbidden. The license
* grants you the installation in one application. For multiuse you will need
* to purchase further licences at http://www.sellxed.com/shop.
*
* See the customweb software licence agreement for more details.
*
*/
//require_once 'Customweb/Mvc/Template/IRenderer.php';
/**
* @author Simon Schurter
* @Bean
*/
abstract class Customweb_Mvc_Template_Renderer implements Customweb_Mvc_Template_IRenderer
{
/**
* @var Customweb_Asset_IResolver
*/
private $assetResolver = null;
/**
* @var Customweb_Cache_IBackend
*/
private $cacheBackend = null;
/**
* @param Customweb_Asset_IResolver $assetResolver
* @param Customweb_DependencyInjection_IContainer $container
*/
public function __construct(Customweb_Asset_IResolver $assetResolver, Customweb_DependencyInjection_IContainer $container)
{
$this->assetResolver = $assetResolver;
if ($container->hasBean('Customweb_Cache_IBackend')) {
$this->cacheBackend = $container->getBean('Customweb_Cache_IBackend');
}
}
/**
* @return Customweb_Asset_IResolver
*/
public function getAssetResolver()
{
return $this->assetResolver;
}
/**
* @return Customweb_Cache_IBackend
*/
public function getCacheBackend()
{
return $this->cacheBackend;
}
}