Verzeichnisstruktur phpBB-3.3.15
- Veröffentlicht
- 28.08.2024
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. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
ParameterBagInterface.php
001 <?php
002
003 /*
004 * This file is part of the Symfony package.
005 *
006 * (c) Fabien Potencier <fabien@symfony.com>
007 *
008 * For the full copyright and license information, please view the LICENSE
009 * file that was distributed with this source code.
010 */
011
012 namespace Symfony\Component\DependencyInjection\ParameterBag;
013
014 use Symfony\Component\DependencyInjection\Exception\LogicException;
015 use Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException;
016
017 /**
018 * ParameterBagInterface.
019 *
020 * @author Fabien Potencier <fabien@symfony.com>
021 */
022 interface ParameterBagInterface
023 {
024 /**
025 * Clears all parameters.
026 *
027 * @throws LogicException if the ParameterBagInterface can not be cleared
028 */
029 public function clear();
030
031 /**
032 * Adds parameters to the service container parameters.
033 *
034 * @param array $parameters An array of parameters
035 *
036 * @throws LogicException if the parameter can not be added
037 */
038 public function add(array $parameters);
039
040 /**
041 * Gets the service container parameters.
042 *
043 * @return array An array of parameters
044 */
045 public function all();
046
047 /**
048 * Gets a service container parameter.
049 *
050 * @param string $name The parameter name
051 *
052 * @return mixed The parameter value
053 *
054 * @throws ParameterNotFoundException if the parameter is not defined
055 */
056 public function get($name);
057
058 /**
059 * Removes a parameter.
060 *
061 * @param string $name The parameter name
062 */
063 public function remove($name);
064
065 /**
066 * Sets a service container parameter.
067 *
068 * @param string $name The parameter name
069 * @param mixed $value The parameter value
070 *
071 * @throws LogicException if the parameter can not be set
072 */
073 public function set($name, $value);
074
075 /**
076 * Returns true if a parameter name is defined.
077 *
078 * @param string $name The parameter name
079 *
080 * @return bool true if the parameter name is defined, false otherwise
081 */
082 public function has($name);
083
084 /**
085 * Replaces parameter placeholders (%name%) by their values for all parameters.
086 */
087 public function resolve();
088
089 /**
090 * Replaces parameter placeholders (%name%) by their values.
091 *
092 * @param mixed $value A value
093 *
094 * @throws ParameterNotFoundException if a placeholder references a parameter that does not exist
095 */
096 public function resolveValue($value);
097
098 /**
099 * Escape parameter placeholders %.
100 *
101 * @param mixed $value
102 *
103 * @return mixed
104 */
105 public function escapeValue($value);
106
107 /**
108 * Unescape parameter placeholders %.
109 *
110 * @param mixed $value
111 *
112 * @return mixed
113 */
114 public function unescapeValue($value);
115 }
116