public function __construct(FormValidators $validators, Licenses $licenses, Addon $addon)
 {
     $this->validators = $validators;
     $this->licenses = $licenses;
     $this->addon = $addon;
     parent::__construct();
 }
Пример #2
0
 public function __construct(Tags $tags)
 {
     $this->tags = $tags;
     parent::__construct();
 }
Пример #3
0
 /**
  * @param bool
  * @return \Nette\ArrayHash|array
  */
 public function getValues($asArray = FALSE)
 {
     $values = parent::getValues($asArray);
     if (isset($this['repository'])) {
         $values['repositoryHosting'] = NULL;
     }
     if (!empty($values['repository'])) {
         $values['repository'] = $this->importerManager->normalizeUrl($values['repository']);
         if ($this->importerManager->isValid($values['repository'])) {
             $values['repositoryHosting'] = $this->importerManager->getIdByUrl($values['repository']);
         }
     }
     return $values;
 }