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