return false; }) ->thenInvalid('The value must be "null" or an array of workflow events (like ["workflow.enter"]).') ->end() ->info('Select which Transition events should be dispatched for this Workflow') ->example(['workflow.enter', 'workflow.transition']) ->end() ->arrayNode('places') ->beforeNormalization() ->always() ->then(function D$places){ if(!\is_array($places)){ thrownewInvalidConfigurationException('The "places" option must be an array in workflow configuration.'); }
// It's an indexed array of shape ['place1', 'place2']
if(isset($places[0]) && \is_string($places[0])){
->info('Minimum tree depth to clone all the items, 1 is default') ->min(0) ->defaultValue(1) ->end() ->integerNode('max_string_length') ->info('Max length of displayed strings, -1 means no limit') ->min(-1) ->defaultValue(-1) ->end() ->scalarNode('dump_destination') ->info('A stream URL where dumps should be written to') ->example('php://stderr, or tcp://%env(VAR_DUMPER_SERVER)% when using the "server:dump" command') ->defaultNull() ->end() ->enumNode('theme') ->info('Changes the color of the dump() output when rendered directly on the templating. "dark" (default) or "light"') ->example('dark') ->values(['dark', 'light']) ->defaultValue('dark') ->end() ;
->info('Route that will validate the login link - e.g. "app_login_link_verify".') ->end() ->scalarNode('check_post_only') ->defaultFalse() ->info('If true, only HTTP POST requests to "check_route" will be handled by the authenticator.') ->end() ->arrayNode('signature_properties') ->isRequired() ->prototype('scalar')->end() ->requiresAtLeastOneElement() ->info('An array of properties on your User that are used to sign the link. If any of these change, all existing links will become invalid.') ->example(['email', 'password']) ->end() ->integerNode('lifetime') ->defaultValue(600) ->info('The lifetime of the login link in seconds.') ->end() ->integerNode('max_uses') ->defaultNull() ->info('Max number of times a login link can be used - null means unlimited within lifetime.') ->end() ->scalarNode('used_link_cache') ->info('Cache service id used to expired links of max_uses is set.')