src/Shell/Task/CsvModuleTask.php
private function bakeApiController(string $name) : void
    {
        $apiPaths = $this->getTargetApiPath();
        $this->pathFragment = $apiPaths['fragment'];

        $this->bake($name, 'Controller/Api/controller', array_merge(['name' => $name], $apiPaths), 'Controller');
    }
private function bakeApiController(string $name) : void
    {
        $apiPaths = $this->getTargetApiPath();
        $this->pathFragment = $apiPaths['fragment'];

        $this->bake($name, 'Controller/Api/controller', array_merge(['name' => $name], $apiPaths), 'Controller');
    }
private function bakeApiController ( string $ name ) : void { $ apiPaths = $ this -> getTargetApiPath ( ) ; $ this -> pathFragment = $ apiPaths [ 'fragment' ] ; $ this -> bake ( $ name , 'Controller/Api/controller' , array_merge ( [ 'name' => $ name ] , $ apiPaths ) , 'Controller' ) ; }
Bake API Controller class.

@param string $name Module name
@return void
Bake API Controller class .