Composer/ScriptHandler.php
public static function exportAssetsVersion()
    {
        $process = new Process('git log -n 1');

        if (0 !== $process->run()) {
            return;
        }

        $output = $process->getOutput();

        if (empty($output)) {
            return;
        }

        putenv(self::ENV_ASSETS_VERSION.'='.md5($output));
    }
public static function exportAssetsVersion()
    {
        $process = new Process('git log -n 1');

        if (0 !== $process->run()) {
            return;
        }

        $output = $process->getOutput();

        if (empty($output)) {
            return;
        }

        putenv(self::ENV_ASSETS_VERSION.'='.md5($output));
    }
public static function exportAssetsVersion ( ) { $ process = new Process ( 'git log -n 1' ) ; if ( 0 !== $ process -> run ( ) ) { return ; } $ output = $ process -> getOutput ( ) ; if ( empty ( $ output ) ) { return ; } putenv ( self :: ENV_ASSETS_VERSION . '=' . md5 ( $ output ) ) ; }
Exports assets version environment variable
Exports assets version environment variable