Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
TemplateEnginePool.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Framework\View;
7 
13 {
19  protected $factory;
20 
26  protected $engines = [];
27 
34  {
35  $this->factory = $factory;
36  }
37 
44  public function get($name)
45  {
46  if (!isset($this->engines[$name])) {
47  $this->engines[$name] = $this->factory->create($name);
48  }
49  return $this->engines[$name];
50  }
51 }
__construct(TemplateEngineFactory $factory)
if(!isset($_GET['name'])) $name
Definition: log.php:14