|
@@ 255-266 (lines=12) @@
|
| 252 |
|
* |
| 253 |
|
* @return Extension $this Fluent interface. |
| 254 |
|
*/ |
| 255 |
|
protected function configureSourceType(array $config, ContainerBuilder $container) |
| 256 |
|
{ |
| 257 |
|
$definition = $container->getDefinition('runopencode.exchange_rate.form_type.source_type'); |
| 258 |
|
|
| 259 |
|
$arguments = $definition->getArguments(); |
| 260 |
|
|
| 261 |
|
$arguments[1] = $config['form_types']['source_type']; |
| 262 |
|
|
| 263 |
|
$definition->setArguments($arguments); |
| 264 |
|
|
| 265 |
|
return $this; |
| 266 |
|
} |
| 267 |
|
|
| 268 |
|
/** |
| 269 |
|
* Configure "RunOpenCode\\Bundle\\ExchangeRate\\Form\\Type\\RateTypeType" default settings. |
|
@@ 276-287 (lines=12) @@
|
| 273 |
|
* |
| 274 |
|
* @return Extension $this Fluent interface. |
| 275 |
|
*/ |
| 276 |
|
protected function configureRateTypeType(array $config, ContainerBuilder $container) |
| 277 |
|
{ |
| 278 |
|
$definition = $container->getDefinition('runopencode.exchange_rate.form_type.rate_type_type'); |
| 279 |
|
|
| 280 |
|
$arguments = $definition->getArguments(); |
| 281 |
|
|
| 282 |
|
$arguments[1] = $config['form_types']['rate_type_type']; |
| 283 |
|
|
| 284 |
|
$definition->setArguments($arguments); |
| 285 |
|
|
| 286 |
|
return $this; |
| 287 |
|
} |
| 288 |
|
|
| 289 |
|
/** |
| 290 |
|
* Configure "RunOpenCode\\Bundle\\ExchangeRate\\Form\\Type\\CurrencyCodeType" default settings. |
|
@@ 318-330 (lines=13) @@
|
| 315 |
|
* |
| 316 |
|
* @return Extension $this Fluent interface. |
| 317 |
|
*/ |
| 318 |
|
protected function configureForeignCurrencyCodeType(array $config, ContainerBuilder $container) |
| 319 |
|
{ |
| 320 |
|
|
| 321 |
|
$definition = $container->getDefinition('runopencode.exchange_rate.form_type.foreign_currency_code_type'); |
| 322 |
|
|
| 323 |
|
$arguments = $definition->getArguments(); |
| 324 |
|
|
| 325 |
|
$arguments[1] = $config['form_types']['foreign_currency_code_type']; |
| 326 |
|
|
| 327 |
|
$definition->setArguments($arguments); |
| 328 |
|
|
| 329 |
|
return $this; |
| 330 |
|
} |
| 331 |
|
|
| 332 |
|
/** |
| 333 |
|
* Configure "RunOpenCode\\Bundle\\ExchangeRate\\Form\\Type\\RateType" default settings. |
|
@@ 340-351 (lines=12) @@
|
| 337 |
|
* |
| 338 |
|
* @return Extension $this Fluent interface. |
| 339 |
|
*/ |
| 340 |
|
protected function configureRateType(array $config, ContainerBuilder $container) |
| 341 |
|
{ |
| 342 |
|
$definition = $container->getDefinition('runopencode.exchange_rate.form_type.rate_type'); |
| 343 |
|
|
| 344 |
|
$arguments = $definition->getArguments(); |
| 345 |
|
|
| 346 |
|
$arguments[1] = $config['form_types']['rate_type']; |
| 347 |
|
|
| 348 |
|
$definition->setArguments($arguments); |
| 349 |
|
|
| 350 |
|
return $this; |
| 351 |
|
} |
| 352 |
|
|
| 353 |
|
/** |
| 354 |
|
* Configure notifications |