/**
  * Get array replacements.
  *
  * @return array
  */
 public function getReplacements()
 {
     $modelGenerator = new ModelGenerator(['name' => $this->name]);
     $model = $modelGenerator->getRootNamespace() . '\\' . $modelGenerator->getName();
     $model = str_replace(["\\", '/'], '\\', $model);
     return array_merge(parent::getReplacements(), ['model' => $model]);
 }
 /**
  * Get array replacements.
  *
  * @return array
  */
 public function getReplacements()
 {
     $transformerGenerator = new TransformerGenerator(['name' => $this->name]);
     $transformer = $transformerGenerator->getRootNamespace() . '\\' . $transformerGenerator->getName() . 'Transformer';
     $transformer = str_replace(["\\", '/'], '\\', $transformer);
     echo $transformer;
     return array_merge(parent::getReplacements(), ['transformer' => $transformer]);
 }
Example #3
0
 /**
  * Get template replacements.
  *
  * @return array
  */
 public function getReplacements()
 {
     return array_merge(parent::getReplacements(), ['extends' => $this->extends, 'section' => $this->section, 'content' => $this->content], $this->customReplacements);
 }
 /**
  * Get array replacements.
  *
  * @return array
  */
 public function getReplacements()
 {
     return array_merge(parent::getReplacements(), ['controller' => $this->getControllerName(), 'plural' => $this->getPluralName(), 'singular' => $this->getSingularName(), 'validator' => $this->getValidator(), 'repository' => $this->getRepository(), 'appname' => $this->getAppNamespace()]);
 }
 /**
  * Get template replacements.
  *
  * @return array
  */
 public function getReplacements()
 {
     return array_merge(parent::getReplacements(), ['command' => $this->option('command', 'command:name'), 'description' => $this->option('description', 'Command description')]);
 }
 public function getReplacements()
 {
     return array_merge(parent::getReplacements(), ['abstract_repository' => $this->AbstractRepository(), 'interface' => $this->getInterface()]);
 }
Example #7
0
 /**
  * @return array
  */
 public function getReplacements()
 {
     return array_merge(parent::getReplacements(), ['transformer' => $this->getOption('transformer') ?: parent::getRootNamespace() . 'Repositories\\Transformers\\' . $this->getName()]);
 }
 /**
  * @return array
  */
 public function getReplacements()
 {
     return array_merge(parent::getReplacements(), ['model' => strpos('\\', $this->getOption('model')) != false ? $this->getOption('model') : $this->getModelNamespace() . $this->getOption('model'), 'presenter' => $this->getOption('presenter'), 'presenterClass' => $this->getOption('presenterClass') ?: 'null']);
 }
 /**
  * Get array replacements.
  *
  * @return array
  */
 public function getReplacements()
 {
     return array_merge(parent::getReplacements(), ['repository' => $this->getRepository(), 'eloquent' => $this->getEloquentRepository(), 'placeholder' => $this->bindPlaceholder]);
 }
 /**
  * Get array replacements.
  *
  * @return array
  */
 public function getReplacements()
 {
     return array_merge(parent::getReplacements(), ['appnamespace' => $this->getAppNamespace()]);
 }
 /**
  * Get array replacements.
  *
  * @return array
  */
 public function getReplacements()
 {
     $modelGenerator = new ModelGenerator();
     return array_merge(parent::getReplacements(), ['model_namespace' => $modelGenerator->getRootNamespace()]);
 }
 /**
  * @return array
  */
 public function getReplacements()
 {
     return array_merge(parent::getReplacements(), ['model' => strpos('\\', $this->getOption('model')) != false ? $this->getOption('model') : $this->getModelNamespace() . $this->getOption('model')]);
 }
 /**
  * Get array replacements.
  *
  * @return array
  */
 public function getReplacements()
 {
     return array_merge(parent::getReplacements(), ['screenable' => $this->getScreenable()]);
 }
 /**
  * Get array replacements.
  *
  * @return array
  */
 public function getReplacements()
 {
     return array_merge(parent::getReplacements(), ['validator' => $this->getValidator(), 'repository' => $this->getRepository(), 'namespace' => 'namespace ' . $this->getRootNamespace() . '\\' . $this->getName() . ';', 'appname' => $this->getAppNamespace(), 'managername' => $this->getManagerName()]);
 }
 /**
  * Get array replacements.
  *
  * @return array
  */
 public function getReplacements()
 {
     $transformerGenerator = new TransformerGenerator(['name' => $this->name]);
     return array_merge(parent::getReplacements(), ['transformer_namespace' => $transformerGenerator->getNamespaceName()]);
 }
 public function getReplacements()
 {
     return array_merge(parent::getReplacements(), ['repositoryinterface' => $this->getRepositoryInterface()]);
 }