Skip to content

Commit 99fc507

Browse files
committed
allow custom Template instance
1 parent 77189fb commit 99fc507

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/assets.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
* Copyright (c) 2018 ~ ikkez
1111
* Christian Knuth <[email protected]>
1212
*
13-
* @version: 1.1.5
14-
* @date: 08.05.2018
13+
* @version: 1.1.6
14+
* @date: 21.08.2018
1515
* @since: 08.08.2014
1616
*
1717
**/
@@ -33,8 +33,8 @@ class Assets extends Prefab {
3333
/** @var array */
3434
protected $formatter;
3535

36-
public function __construct() {
37-
$this->template = \Template::instance();
36+
public function __construct(\Template $template=NULL) {
37+
$this->template = $template ?: \Template::instance();
3838
$f3 = $this->f3 = \Base::instance();
3939
$minifyComplier = function($fileName,$path) {
4040
return \Web::instance()->minify($fileName,null,false,$path);

0 commit comments

Comments
 (0)