src/Event.php
protected function serializeClosure(Closure $closure)
    {
        $closure = (new Serializer())->serialize($closure);
        $serializedClosure = \http_build_query([$closure]);
        $crunzRoot = CRUNZ_BIN;

        return PHP_BINARY . " {$crunzRoot} closure:run {$serializedClosure}";
    }
protected function serializeClosure(Closure $closure)
    {
        $closure = (new Serializer())->serialize($closure);
        $serializedClosure = \http_build_query([$closure]);
        $crunzRoot = CRUNZ_BIN;

        return PHP_BINARY . " {$crunzRoot} closure:run {$serializedClosure}";
    }
protected function serializeClosure ( Closure $ closure ) { $ closure = ( new Serializer ( ) ) -> serialize ( $ closure ) ; $ serializedClosure = \ http_build_query ( [ $ closure ] ) ; $ crunzRoot = CRUNZ_BIN ; return PHP_BINARY . " {$crunzRoot} closure:run {$serializedClosure}" ; }
Convert closure to an executable command.

@return string
Convert closure to an executable command .