|
@@ 264-275 (lines=12) @@
|
| 261 |
|
* |
| 262 |
|
* @return Extension $this Fluent interface. |
| 263 |
|
*/ |
| 264 |
|
protected function configureSourceType(array $config, ContainerBuilder $container) |
| 265 |
|
{ |
| 266 |
|
$definition = $container->getDefinition('runopencode.exchange_rate.form_type.source_type'); |
| 267 |
|
|
| 268 |
|
$arguments = $definition->getArguments(); |
| 269 |
|
|
| 270 |
|
$arguments[1] = $config['form_types']['source_type']; |
| 271 |
|
|
| 272 |
|
$definition->setArguments($arguments); |
| 273 |
|
|
| 274 |
|
return $this; |
| 275 |
|
} |
| 276 |
|
|
| 277 |
|
/** |
| 278 |
|
* Configure "RunOpenCode\\Bundle\\ExchangeRate\\Form\\Type\\RateTypeType" default settings. |
|
@@ 285-296 (lines=12) @@
|
| 282 |
|
* |
| 283 |
|
* @return Extension $this Fluent interface. |
| 284 |
|
*/ |
| 285 |
|
protected function configureRateTypeType(array $config, ContainerBuilder $container) |
| 286 |
|
{ |
| 287 |
|
$definition = $container->getDefinition('runopencode.exchange_rate.form_type.rate_type_type'); |
| 288 |
|
|
| 289 |
|
$arguments = $definition->getArguments(); |
| 290 |
|
|
| 291 |
|
$arguments[1] = $config['form_types']['rate_type_type']; |
| 292 |
|
|
| 293 |
|
$definition->setArguments($arguments); |
| 294 |
|
|
| 295 |
|
return $this; |
| 296 |
|
} |
| 297 |
|
|
| 298 |
|
/** |
| 299 |
|
* Configure "RunOpenCode\\Bundle\\ExchangeRate\\Form\\Type\\CurrencyCodeType" default settings. |
|
@@ 327-339 (lines=13) @@
|
| 324 |
|
* |
| 325 |
|
* @return Extension $this Fluent interface. |
| 326 |
|
*/ |
| 327 |
|
protected function configureForeignCurrencyCodeType(array $config, ContainerBuilder $container) |
| 328 |
|
{ |
| 329 |
|
|
| 330 |
|
$definition = $container->getDefinition('runopencode.exchange_rate.form_type.foreign_currency_code_type'); |
| 331 |
|
|
| 332 |
|
$arguments = $definition->getArguments(); |
| 333 |
|
|
| 334 |
|
$arguments[1] = $config['form_types']['foreign_currency_code_type']; |
| 335 |
|
|
| 336 |
|
$definition->setArguments($arguments); |
| 337 |
|
|
| 338 |
|
return $this; |
| 339 |
|
} |
| 340 |
|
|
| 341 |
|
/** |
| 342 |
|
* Configure "RunOpenCode\\Bundle\\ExchangeRate\\Form\\Type\\RateType" default settings. |
|
@@ 349-360 (lines=12) @@
|
| 346 |
|
* |
| 347 |
|
* @return Extension $this Fluent interface. |
| 348 |
|
*/ |
| 349 |
|
protected function configureRateType(array $config, ContainerBuilder $container) |
| 350 |
|
{ |
| 351 |
|
$definition = $container->getDefinition('runopencode.exchange_rate.form_type.rate_type'); |
| 352 |
|
|
| 353 |
|
$arguments = $definition->getArguments(); |
| 354 |
|
|
| 355 |
|
$arguments[1] = $config['form_types']['rate_type']; |
| 356 |
|
|
| 357 |
|
$definition->setArguments($arguments); |
| 358 |
|
|
| 359 |
|
return $this; |
| 360 |
|
} |
| 361 |
|
|
| 362 |
|
/** |
| 363 |
|
* Configure notifications |