/**
  * Constructor
  *
  * @param ParameterRegistry $registry ParameterRegistry object.
  * @param array $config Object settings.
  * @throws \PlumSearch\FormParameter\Exception\MissingParameterException
  */
 public function __construct(ParameterRegistry $registry, array $config = [])
 {
     parent::__construct($registry, $config);
     $config['field'] = $config['name'] . '_lookup';
     $this->config($config);
     if (empty($config['autocompleteAction']) || !is_callable($config['autocompleteAction'])) {
         throw new MissingParameterException(__('Missed "autocompleteAction" configuration setting for select param `{0}`', $this->config('name')));
     }
 }
 /**
  * Constructor
  *
  * @param ParameterRegistry $registry ParameterRegistry object.
  * @param array $config Object settings.
  * @throws \PlumSearch\FormParameter\Exception\MissingParameterException
  */
 public function __construct(ParameterRegistry $registry, array $config = [])
 {
     parent::__construct($registry, $config);
     if (empty($config['options']) || !is_array($config['options'])) {
         if (empty($config['finder'])) {
             throw new MissingParameterException(__('Missed "finder" configuration setting for select param `{0}`', $this->config('name')));
         }
     }
 }