Exemplo n.º 1
0
 /**
  * {@inheritDoc}
  *
  * @return ResourceGenerator
  */
 protected function createGenerator()
 {
     // do we have a json path passed?
     if ($this->input->getOption('json') !== null) {
         $definitions = $this->definitionLoader->load($this->input->getOption('json'));
         if (count($definitions) > 0) {
             $this->resourceGenerator->setJson($definitions[0]);
         }
     }
     $this->resourceGenerator->setGenerateController($this->input->getOption('no-controller') != 'true');
     return $this->resourceGenerator;
 }