src/Graviton/GeneratorBundle/Command/GenerateDynamicBundleCommand.php
private function generateGenerationHashFile($bundleDir, $hash)
    {
        $fs = new Filesystem();
        if ($fs->exists($bundleDir)) {
            $fs->dumpFile($bundleDir.DIRECTORY_SEPARATOR.self::GENERATION_HASHFILE_FILENAME, $hash);
        }
    }
private function generateGenerationHashFile($bundleDir, $hash)
    {
        $fs = new Filesystem();
        if ($fs->exists($bundleDir)) {
            $fs->dumpFile($bundleDir.DIRECTORY_SEPARATOR.self::GENERATION_HASHFILE_FILENAME, $hash);
        }
    }
private function generateGenerationHashFile ( $ bundleDir , $ hash ) { $ fs = new Filesystem ( ) ; if ( $ fs -> exists ( $ bundleDir ) ) { $ fs -> dumpFile ( $ bundleDir . DIRECTORY_SEPARATOR . self :: GENERATION_HASHFILE_FILENAME , $ hash ) ; } }
Generates the file containing the hash to determine if this bundle needs regeneration

@param string $bundleDir directory of the bundle
@param string $hash      the hash to save

@return void
Generates the file containing the hash to determine if this bundle needs regeneration