File tree 1 file changed +5
-3
lines changed
Filter options
1 file changed +5
-3
lines changed
Original file line number Diff line number Diff line change @@ -313,9 +313,11 @@ example, suppose that you're storing the shipping parameters in configuration:
313
313
.. code-block :: php
314
314
315
315
// app/config/config.php
316
- $container->setParameter('shipping_options.standard', 'Standard Shipping');
317
- $container->setParameter('shipping_options.expedited', 'Expedited Shipping');
318
- $container->setParameter('shipping_options.priority', 'Priority Shipping');
316
+ $container->setParameter('shipping_options', array(
317
+ 'standard' => 'Standard Shipping',
318
+ 'expedited' => 'Expedited Shipping',
319
+ 'priority' => 'Priority Shipping',
320
+ ));
319
321
320
322
To use the parameter, define your custom field type as a service, injecting the
321
323
``shipping_options `` parameter value as the first argument to its to-be-created
You can’t perform that action at this time.
0 commit comments