src/DotsUnited/BundleFu/Bundle.php
protected function writeBundleFile($bundlePath, $data)
    {
        $dir = dirname($bundlePath);

        if (!file_exists($dir)) {
            mkdir($dir, 0777, true);
        }

        if (false === file_put_contents($bundlePath, $data, LOCK_EX)) {
            // @codeCoverageIgnoreStart
            throw new \RuntimeException('Cannot write cache file to "' . $bundlePath . '"');
            // @codeCoverageIgnoreEnd
        }

        return filemtime($bundlePath);
    }
protected function writeBundleFile($bundlePath, $data)
    {
        $dir = dirname($bundlePath);

        if (!file_exists($dir)) {
            mkdir($dir, 0777, true);
        }

        if (false === file_put_contents($bundlePath, $data, LOCK_EX)) {
            // @codeCoverageIgnoreStart
            throw new \RuntimeException('Cannot write cache file to "' . $bundlePath . '"');
            // @codeCoverageIgnoreEnd
        }

        return filemtime($bundlePath);
    }
protected function writeBundleFile ( $ bundlePath , $ data ) { $ dir = dirname ( $ bundlePath ) ; if ( ! file_exists ( $ dir ) ) { mkdir ( $ dir , 0777 , true ) ; } if ( false === file_put_contents ( $ bundlePath , $ data , LOCK_EX ) ) { // @codeCoverageIgnoreStart throw new \ RuntimeException ( 'Cannot write cache file to "' . $ bundlePath . '"' ) ; // @codeCoverageIgnoreEnd } return filemtime ( $ bundlePath ) ; }
Write a bundle file to disk.

@param  string  $bundlePath
@param  string  $data
@return integer
Write a bundle file to disk .