src/Filter/AssetFilter.php
protected function _runCmd($cmd, $content, $environment = null)
    {
        $Process = new AssetProcess();
        $Process->environment($environment);
        $Process->command($cmd)->run($content);

        if ($Process->error()) {
            throw new RuntimeException($Process->error());
        }
        return $Process->output();
    }
protected function _runCmd($cmd, $content, $environment = null)
    {
        $Process = new AssetProcess();
        $Process->environment($environment);
        $Process->command($cmd)->run($content);

        if ($Process->error()) {
            throw new RuntimeException($Process->error());
        }
        return $Process->output();
    }
protected function _runCmd ( $ cmd , $ content , $ environment = null ) { $ Process = new AssetProcess ( ) ; $ Process -> environment ( $ environment ) ; $ Process -> command ( $ cmd ) -> run ( $ content ) ; if ( $ Process -> error ( ) ) { throw new RuntimeException ( $ Process -> error ( ) ) ; } return $ Process -> output ( ) ; }
Run the compressor command and get the output

@param string $cmd The command to run.
@param string $content The content to run through the command.
@return The result of the command.
@throws RuntimeException
Run the compressor command and get the output