Verzeichnisstruktur phpBB-3.1.0


Veröffentlicht
27.10.2014

So funktioniert es


Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück

Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

FrozenParameterBag.php

Zuletzt modifiziert: 09.10.2024, 12:58 - Dateigröße: 1.50 KiB


01  <?php
02   
03  /*
04   * This file is part of the Symfony package.
05   *
06   * (c) Fabien Potencier <fabien@symfony.com>
07   *
08   * For the full copyright and license information, please view the LICENSE
09   * file that was distributed with this source code.
10   */
11   
12  namespace Symfony\Component\DependencyInjection\ParameterBag;
13   
14  use Symfony\Component\DependencyInjection\Exception\LogicException;
15   
16  /**
17   * Holds read-only parameters.
18   *
19   * @author Fabien Potencier <fabien@symfony.com>
20   *
21   * @api
22   */
23  class FrozenParameterBag extends ParameterBag
24  {
25      /**
26       * Constructor.
27       *
28       * For performance reasons, the constructor assumes that
29       * all keys are already lowercased.
30       *
31       * This is always the case when used internally.
32       *
33       * @param array $parameters An array of parameters
34       *
35       * @api
36       */
37      public function __construct(array $parameters = array())
38      {
39          $this->parameters = $parameters;
40          $this->resolved = true;
41      }
42   
43      /**
44       * {@inheritdoc}
45       *
46       * @api
47       */
48      public function clear()
49      {
50          throw new LogicException('Impossible to call clear() on a frozen ParameterBag.');
51      }
52   
53      /**
54       * {@inheritdoc}
55       *
56       * @api
57       */
58      public function add(array $parameters)
59      {
60          throw new LogicException('Impossible to call add() on a frozen ParameterBag.');
61      }
62   
63      /**
64       * {@inheritdoc}
65       *
66       * @api
67       */
68      public function set($name, $value)
69      {
70          throw new LogicException('Impossible to call set() on a frozen ParameterBag.');
71      }
72  }
73