usemarkup / BarcodeBundle

A Symfony2 bundle that provides straightforward barcode generation using the Zend Barcode component.
MIT License
2 stars 3 forks source link

barcode_options not allowed? #1

Closed LurkerAtTheGate closed 8 years ago

LurkerAtTheGate commented 9 years ago

it seems like your Configuration doesn't allow anything in barcode_options... ex:

markup_barcode:
    definitions:
        invoice:
            type: itf14
            format: png
            barcode_options:   
               withBearerBars: true

It could be that I don't understand your intended Configuration yaml, but the above is what I would expect. Changing the Configuration tree to ->arrayNode('barcode_options') ->prototype('scalar')->end() ->end() allows the above to work (with as many options under barcode_options as is needed).

shieldo commented 9 years ago

I think you're going to want:

->prototype('variable')->end()

for that, but yes, you're dead right, thanks.

shieldo commented 8 years ago

@LurkerAtTheGate Thanks for the PR to fix this! I've made a 1.1.1 tag.