public function modify(SplFileInfo $generatedFile, SplFileInfo $templateFile, array $modifiers, Inflector $inflector)
    {
        foreach ($modifiers as $modifierAlias => $modifierData) {
            if ($modifier = $this->contentModifiers->get($modifierAlias)) {
                $this->filesystem->dumpFile(
                    $generatedFile->getRealPath(),
                    $modifier->modify(
                        $generatedFile,
                        is_array($modifierData) ? $modifierData : array(),
                        $inflector,
                        $templateFile
                    )
                );
            }
        }
    }
public function modify(SplFileInfo $generatedFile, SplFileInfo $templateFile, array $modifiers, Inflector $inflector)
    {
        foreach ($modifiers as $modifierAlias => $modifierData) {
            if ($modifier = $this->contentModifiers->get($modifierAlias)) {
                $this->filesystem->dumpFile(
                    $generatedFile->getRealPath(),
                    $modifier->modify(
                        $generatedFile,
                        is_array($modifierData) ? $modifierData : array(),
                        $inflector,
                        $templateFile
                    )
                );
            }
        }
    }
public function modify ( SplFileInfo $ generatedFile , SplFileInfo $ templateFile , array $ modifiers , Inflector $ inflector ) { foreach ( $ modifiers as $ modifierAlias => $ modifierData ) { if ( $ modifier = $ this -> contentModifiers -> get ( $ modifierAlias ) ) { $ this -> filesystem -> dumpFile ( $ generatedFile -> getRealPath ( ) , $ modifier -> modify ( $ generatedFile , is_array ( $ modifierData ) ? $ modifierData : array ( ) , $ inflector , $ templateFile ) ) ; } } }
run content modifiers on given file content.

@param SplFileInfo $generatedFile
@param SplFileInfo $templateFile
@param array       $modifiers
@param Inflector   $inflector

@return string
run content modifiers on given file content .