Skip to content

Commit

Permalink
Allow screenshots to be loaded from a folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Spomky committed Dec 29, 2023
1 parent 5175180 commit 173975c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,25 +80,25 @@ private function setupScreenshots(ArrayNodeDefinition $node): void
->children()
->scalarNode('src')
->isRequired()
->info('The path to the screenshot.')
->info('The path to the screenshot. If the path is a folder, all images in the folder will be used.')
->example('screenshot/lowres.webp')
->end()
->scalarNode('form_factor')
->info('The form factor of the screenshot. Will guess the form factor if not set.')
->info('The form factor of the screenshot. Will guess the form factor if not set. If the "src" parameter is a folder, all screenshots will have the same form factor.')
->example(['wide', 'narrow'])
->end()
->scalarNode('label')
->info('The label of the screenshot.')
->info('The label of the screenshot. If the "src" parameter is a folder, all screenshots will have the same label.')
->example('Homescreen of Awesome App')
->end()
->scalarNode('platform')
->info('The platform of the screenshot.')
->info('The platform of the screenshot. If the "src" parameter is a folder, all screenshots will have the same platform.')
->example(
['android', 'windows', 'chromeos', 'ipados', 'ios', 'kaios', 'macos', 'windows', 'xbox']
)
->end()
->scalarNode('format')
->info('The format of the screenshot. Will convert the file if set.')
->info('The format of the screenshot. Will convert the file if set. If the "src" parameter is a folder, all screenshots will have the same format.')
->example(['jpg', 'png', 'webp'])
->end()
->end()
Expand Down

0 comments on commit 173975c

Please sign in to comment.