コード例 #1
0
 /**
  * Get destination path for generated file.
  *
  * @return string
  */
 public function getPath()
 {
     return $this->getBasePath() . '/' . parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true) . '/' . $this->getName() . 'Repository.php';
 }
コード例 #2
0
 /**
  * Get array replacements.
  *
  * @return array
  */
 public function getReplacements()
 {
     return array_merge(parent::getReplacements(), ['fillable' => $this->getFillable(), 'repository' => parent::getRootNamespace() . parent::getConfigGeneratorClassPath('interfaces') . '\\' . $this->getName() . 'Repository;', 'model' => isset($this->options['model']) ? $this->options['model'] : '']);
 }