src/Kunstmaan/GeneratorBundle/Generator/KunstmaanGenerator.php
public function renderExecutableFile($sourceDir, $targetDir, $filename, array $parameters, $override = false, $mode = 0774)
    {
        $this->renderSingleFile($sourceDir, $targetDir, $filename, $parameters, $override);

        $targetDir = rtrim($targetDir, '/') . '/';
        $targetFile = $targetDir . $filename;
        $this->filesystem->chmod($targetFile, $mode);
    }
public function renderExecutableFile($sourceDir, $targetDir, $filename, array $parameters, $override = false, $mode = 0774)
    {
        $this->renderSingleFile($sourceDir, $targetDir, $filename, $parameters, $override);

        $targetDir = rtrim($targetDir, '/') . '/';
        $targetFile = $targetDir . $filename;
        $this->filesystem->chmod($targetFile, $mode);
    }
public function renderExecutableFile ( $ sourceDir , $ targetDir , $ filename , array $ parameters , $ override = false , $ mode = 0774 ) { $ this -> renderSingleFile ( $ sourceDir , $ targetDir , $ filename , $ parameters , $ override ) ; $ targetDir = rtrim ( $ targetDir , '/' ) . '/' ; $ targetFile = $ targetDir . $ filename ; $ this -> filesystem -> chmod ( $ targetFile , $ mode ) ; }
Render a file and make it executable.

@param string $sourceDir  The source directory where we need to look in
@param string $targetDir  The target directory where we need to copy the files too
@param string $filename   The name of the file that needs to be rendered
@param array  $parameters The parameters that will be passed to the templates
@param bool   $override   Whether to override an existing file or not
@param int    $mode       The mode
Render a file and make it executable .