Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Config.php
Go to the documentation of this file.
1 <?php
7 
11 
15 class Config implements ConfigInterface
16 {
22  private $iterator;
23 
29  public function __construct(Iterator $iterator)
30  {
31  $this->iterator = $iterator;
32  }
33 
37  public function getConsumer($name)
38  {
39  $consumer = $this->iterator[$name];
40  if (!$consumer) {
41  throw new LocalizedException(new Phrase("Consumer '%consumer' is not declared.", ['consumer' => $name]));
42  }
43  return $consumer;
44  }
45 
49  public function getConsumers()
50  {
51  return $this->iterator;
52  }
53 }
if(!isset($_GET['name'])) $name
Definition: log.php:14