/**
  * Get array replacements.
  *
  * @return array
  */
 public function getReplacements()
 {
     $repository = parent::getRootNamespace() . parent::getConfigGeneratorClassPath('interfaces') . '\\' . $this->getName() . 'Repository;';
     $repository = strtr($repository, '/', '\\');
     return array_merge(parent::getReplacements(), ['fillable' => $this->getFillable(), 'repository' => $repository, 'model' => isset($this->options['model']) ? $this->options['model'] : '']);
 }
 /**
  * Get destination path for generated file.
  *
  * @return string
  */
 public function getPath()
 {
     return $this->getBasePath() . '/Domains/' . ($this->getName() ? $this->getName() . '/' : '') . parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true) . '/' . $this->getName() . 'Validator.php';
 }
 /**
  * Get array replacements.
  *
  * @return array
  */
 public function getReplacements()
 {
     $repository = parent::getRootNamespace() . 'Domains\\' . $this->getName() . '\\' . parent::getConfigGeneratorClassPath('interfaces') . '\\' . $this->name . 'Repository;';
     $repository = str_replace(["\\", '/'], '\\', $repository);
     return array_merge(parent::getReplacements(), ['fillable' => $this->getFillable(), 'use_validator' => $this->getValidatorUse(), 'validator' => $this->getValidatorMethod(), 'repository' => $repository, 'model' => isset($this->options['model']) ? $this->options['model'] : '']);
 }
예제 #4
0
 /**
  * Get destination path for generated file.
  *
  * @return string
  */
 public function getPath()
 {
     return $this->getBasePath() . '/' . parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true) . '/' . $this->getName() . '.php';
 }