/**
  * Adds only valid migration names to the available choices.
  */
 protected function setupProperties()
 {
     parent::setupProperties();
     $this->choices = [];
     foreach ($this->getContext()->getUser()->getAvailableRoles() as $role_id) {
         $this->choices[] = $role_id;
     }
 }
 /**
  * Adds only valid migration target names to the available choices.
  */
 protected function setupProperties()
 {
     parent::setupProperties();
     $target_name = $this->getData('target');
     $this->choices = [];
     $fixtures = $this->getContext()->getServiceLocator()->getFixtureService()->getFixtureList($target_name);
     foreach ($fixtures as $fixture) {
         $this->choices[] = sprintf('%s:%s', $fixture->getVersion(), $fixture->getName());
     }
 }
 /**
  * Adds only valid queue names to the available choices.
  */
 protected function setupProperties()
 {
     parent::setupProperties();
     $job_map = $this->getContext()->getServiceLocator()->getJobService()->getJobMap();
     $choices = [];
     foreach ($job_map->getSettings() as $name => $job) {
         $choices[] = $job->get('settings')->get('queue');
     }
     $this->choices = array_unique($choices);
 }
 /**
  * Adds only valid migration names to the available choices.
  */
 protected function setupProperties()
 {
     parent::setupProperties();
     $type_name = $this->getData('type')->getPackagePrefix();
     $this->choices = [];
     $migrations = $this->getContext()->getServiceLocator()->getMigrationService()->getMigrationList($type_name . '::migration::view_store');
     foreach ($migrations as $migration) {
         $this->choices[] = sprintf('%s:%s', $migration->getVersion(), $migration->getName());
     }
     $this->choices[] = self::NONE_MIGRATION;
 }
 /**
  * Adds only valid migration target names to the available choices.
  */
 protected function setupProperties()
 {
     parent::setupProperties();
     $this->choices = $this->getContext()->getServiceLocator()->getAggregateRootTypeMap()->getKeys();
 }
 /**
  * Adds only valid channel-names target names to the available choices.
  */
 protected function setupProperties()
 {
     parent::setupProperties();
     $this->choices = $this->getContext()->getServiceLocator()->getEventBus()->getChannels()->getKeys();
 }