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;
 }
Exemplo n.º 2
0
 /**
  * (non-PHPdoc)
  * @see \Graviton\GeneratorBundle\Generator\ResourceGenerator::generateDocument()
  *
  * @param string $dir base bundle dir
  *
  * @return void
  */
 public function generateParameters($dir)
 {
     parent::generateParameters($dir);
 }