private function createResourceController(
        Generator $generator,
        $prefix,
        $controller,
        $model_namespace = ''
    ) {
        $generator->write('controller/rest', [
            'modelNamespace' => $model_namespace,
            'prefix' => $prefix,
            'baseNamespace' => $this->namespaces['controller']
        ]);

        echo Color::green('The controller Rest was well created.');
    }
private function createResourceController(
        Generator $generator,
        $prefix,
        $controller,
        $model_namespace = ''
    ) {
        $generator->write('controller/rest', [
            'modelNamespace' => $model_namespace,
            'prefix' => $prefix,
            'baseNamespace' => $this->namespaces['controller']
        ]);

        echo Color::green('The controller Rest was well created.');
    }
private function createResourceController ( Generator $ generator , $ prefix , $ controller , $ model_namespace = '' ) { $ generator -> write ( 'controller/rest' , [ 'modelNamespace' => $ model_namespace , 'prefix' => $ prefix , 'baseNamespace' => $ this -> namespaces [ 'controller' ] ] ) ; echo Color :: green ( 'The controller Rest was well created.' ) ; }
Create rest controller

@param Generator $generator
@param string $prefix
@param string $controller
@param string $model_namespace

@return void
Create rest controller