/**
  * Validate value and provide a validation token for the input value.
  */
 protected function validate()
 {
     $success = parent::validate();
     $token_name = sprintf('skeleton_name_%s', $this->data);
     $this->getDependencyManager()->addDependTokens(array($token_name), $this->curBase);
     return $success;
 }
 /**
  * Validate input and provide a state machine subject for the input value
  */
 protected function validate()
 {
     $success = parent::validate();
     if ($success) {
         $input = $this->getData('input');
         $subject = $this->getData($this->original_argument);
         $builder = new XmlStateMachineBuilder(['state_machine_definition' => $input, 'name' => $subject], $this->getContext()->getServiceLocator());
         $state_machine = $builder->build();
         $this->export($state_machine, $this->original_argument);
     }
     return $success;
 }
 /**
  * Validate value and provide a validation token for the input value.
  */
 protected function validate()
 {
     $success = parent::validate();
     $module_name = $this->data;
     $module = $this->finder->findByName($module_name);
     $module_settings = parse_ini_file($module->getPathName() . DIRECTORY_SEPARATOR . 'module.ini');
     if ($module_settings === false) {
         $this->throwError();
         return false;
     }
     $target_path = $module->getPathName();
     if ($this->hasParameter('relative_target_path')) {
         $target_path .= DIRECTORY_SEPARATOR . $this->getParameter('relative_target_path');
     }
     $this->export($target_path, 'target_path');
     $this->export($module_settings['vendor'], 'vendor');
     $this->export($module_settings['package'], 'package');
     return $success;
 }
 /**
  * Validate value and provide a validation token for the input value.
  */
 protected function validate()
 {
     $success = parent::validate();
     return $success;
 }