1 | <?php |
||
66 | class Config |
||
67 | { |
||
68 | const ENV_ALL = 'all'; |
||
69 | |||
70 | const ENV_PROD = 'prod'; |
||
71 | |||
72 | const ENV_PREP = 'prep'; |
||
73 | |||
74 | const ENV_DEV = 'dev'; |
||
75 | |||
76 | const ENV_LOCAL = 'local'; |
||
77 | |||
78 | const RUNTIME_ALL = 0; |
||
79 | |||
80 | const RUNTIME_CONSOLE = 1; |
||
81 | |||
82 | const RUNTIME_WEB = 2; |
||
83 | |||
84 | public function __construct($id, $basePath, array $applicationConfig = []) |
||
91 | |||
92 | /** |
||
93 | * Undocumented function |
||
94 | * |
||
95 | * @param [type] $config |
||
|
|||
96 | * @return ConfigDefinition |
||
97 | */ |
||
98 | public function application($config) |
||
102 | |||
103 | /** |
||
104 | * Undocumented function |
||
105 | * |
||
106 | * @param [type] $id |
||
107 | * @param [type] $config |
||
108 | * @return ConfigDefinition |
||
109 | */ |
||
110 | public function module($id, $config) |
||
114 | |||
115 | /** |
||
116 | * Undocumented function |
||
117 | * |
||
118 | * @param [type] $id |
||
119 | * @param [type] $config |
||
120 | * @param [type] $runtime |
||
121 | * @return ConfigDefinition |
||
122 | */ |
||
123 | public function component($id, $config, $runtime = self::RUNTIME_ALL) |
||
127 | |||
128 | /** |
||
129 | * Undocumented function |
||
130 | * |
||
131 | * @param [type] $id |
||
132 | * @param [type] $config |
||
133 | * @return ConfigDefinition |
||
134 | */ |
||
135 | public function webComponent($id, $config) |
||
139 | |||
140 | /** |
||
141 | * Undocumented function |
||
142 | * |
||
143 | * @param [type] $id |
||
144 | * @param [type] $config |
||
145 | * @return ConfigDefinition |
||
146 | */ |
||
147 | public function consoleComponent($id, $config) |
||
151 | |||
152 | private $_definitions = []; |
||
153 | |||
154 | /** |
||
155 | * Undocumented function |
||
156 | * |
||
157 | * @param ConfigDefinition $definition |
||
158 | * @return ConfigDefinition |
||
159 | */ |
||
160 | private function addDefinition(ConfigDefinition $definition) |
||
166 | |||
167 | private $_isCliRuntime; |
||
168 | |||
169 | /** |
||
170 | * Whether runtime is cli or not |
||
171 | * |
||
172 | * @return boolean |
||
173 | */ |
||
174 | public function isCliRuntime() |
||
182 | |||
183 | public function setCliRuntime($value) |
||
187 | |||
188 | public function toArray(array $envs = []) |
||
210 | |||
211 | private function appendConfig(&$config, ConfigDefinition $definition) |
||
228 | |||
229 | private function handleKeyBaseMerge(&$config, ConfigDefinition $definition, $section) |
||
241 | } |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.