src/Charcoal/App/Template/AbstractWidget.php 1 location
|
@@ 41-48 (lines=8) @@
|
38 |
|
/** |
39 |
|
* @param array|\ArrayAccess $data Optional dependencies. |
40 |
|
*/ |
41 |
|
public function __construct($data = null) |
42 |
|
{ |
43 |
|
$this->setLogger($data['logger']); |
44 |
|
|
45 |
|
if (isset($data['container'])) { |
46 |
|
$this->setDependencies($data['container']); |
47 |
|
} |
48 |
|
} |
49 |
|
|
50 |
|
/** |
51 |
|
* @param boolean $active The active flag. |
src/Charcoal/App/Template/AbstractTemplate.php 1 location
|
@@ 40-47 (lines=8) @@
|
37 |
|
/** |
38 |
|
* @param array|\ArrayAccess $data The dependencies (app and logger). |
39 |
|
*/ |
40 |
|
public function __construct($data = null) |
41 |
|
{ |
42 |
|
$this->setLogger($data['logger']); |
43 |
|
|
44 |
|
if (isset($data['container'])) { |
45 |
|
$this->setDependencies($data['container']); |
46 |
|
} |
47 |
|
} |
48 |
|
|
49 |
|
/** |
50 |
|
* Retrieve the template's identifier. |