/**
  * @param ConfigureOptionsEvent $event
  */
 public function configureOptions(ConfigureOptionsEvent $event)
 {
     $options = $event->getOptions();
     $options->setDefaults(['path' => null, 'node_name' => null, 'parent_path' => null, 'auto_create' => false]);
     $options->setAllowedTypes('path', ['null', 'string']);
     $options->setAllowedTypes('node_name', ['null', 'string']);
     $options->setAllowedTypes('parent_path', ['null', 'string']);
     $options->setAllowedTypes('auto_create', 'bool');
 }
Ejemplo n.º 2
0
 /**
  * @param ConfigureOptionsEvent $event
  */
 public function configureOptions(ConfigureOptionsEvent $event)
 {
     $event->getOptions()->setDefaults(['user' => null]);
 }
 public function handleConfigureOptions(ConfigureOptionsEvent $event)
 {
     $options = $event->getOptions();
     $options->setDefaults(['test.foo' => 'bar']);
 }
Ejemplo n.º 4
0
 /**
  * @param ConfigureOptionsEvent $event
  */
 public function configureOptions(ConfigureOptionsEvent $event)
 {
     $options = $event->getOptions();
     $options->setDefaults(['load_ghost_content' => true, 'clear_missing_content' => false, 'ignore_required' => false]);
     $options->setAllowedTypes(['load_ghost_content' => 'bool', 'clear_missing_content' => 'bool', 'ignore_required' => 'bool']);
 }
Ejemplo n.º 5
0
 /**
  * @param ConfigureOptionsEvent $event
  */
 public function configureOptions(ConfigureOptionsEvent $event)
 {
     $options = $event->getOptions();
     $options->setDefaults(['type' => null]);
 }
Ejemplo n.º 6
0
 /**
  * @param ConfigureOptionsEvent $event
  */
 public function configureOptions(ConfigureOptionsEvent $event)
 {
     $options = $event->getOptions();
     $options->setDefaults(['load_ghost_content' => true]);
     $options->setAllowedTypes(['load_ghost_content' => 'bool']);
 }