public function createController($config)
    {
        $this->fileService->mkdir($config['_path_controller_'], 0777, true);

        $request = $this->fileService->get($config['template_source'].'/Controller.txt');

        foreach ($config as $key => $value) {
            $request = str_replace($key, $value, $request);
        }

        $request = $this->putIfNotExists($config['_path_controller_'].'/'.$config['_ucCamel_casePlural_'].'Controller.php', $request);

        return $request;
    }
public function createController($config)
    {
        $this->fileService->mkdir($config['_path_controller_'], 0777, true);

        $request = $this->fileService->get($config['template_source'].'/Controller.txt');

        foreach ($config as $key => $value) {
            $request = str_replace($key, $value, $request);
        }

        $request = $this->putIfNotExists($config['_path_controller_'].'/'.$config['_ucCamel_casePlural_'].'Controller.php', $request);

        return $request;
    }
public function createController ( $ config ) { $ this -> fileService -> mkdir ( $ config [ '_path_controller_' ] , 0777 , true ) ; $ request = $ this -> fileService -> get ( $ config [ 'template_source' ] . '/Controller.txt' ) ; foreach ( $ config as $ key => $ value ) { $ request = str_replace ( $ key , $ value , $ request ) ; } $ request = $ this -> putIfNotExists ( $ config [ '_path_controller_' ] . '/' . $ config [ '_ucCamel_casePlural_' ] . 'Controller.php' , $ request ) ; return $ request ; }
Create the controller.

@param array $config

@return bool
Create the controller .