src/mako/reactor/traits/FireTrait.php
protected function buildCommand(string $command, bool $background = false, bool $sameEnvironment = true): string
	{
		if($sameEnvironment && strpos($command, '--env=') === false && ($environment = $this->app->getEnvironment()) !== null)
		{
			$command .= ' --env=' . $environment;
		}

		$command = PHP_BINARY . ' ' . $this->buildReactorPath() . ' ' . $command . ' 2>&1';

		if(DIRECTORY_SEPARATOR === '\\')
		{
			if($background)
			{
				$command = '/b ' . $command;
			}

			return 'start ' . $command;
		}

		if($background)
		{
			$command .= ' &';
		}

		return $command;
	}
protected function buildCommand(string $command, bool $background = false, bool $sameEnvironment = true): string
	{
		if($sameEnvironment && strpos($command, '--env=') === false && ($environment = $this->app->getEnvironment()) !== null)
		{
			$command .= ' --env=' . $environment;
		}

		$command = PHP_BINARY . ' ' . $this->buildReactorPath() . ' ' . $command . ' 2>&1';

		if(DIRECTORY_SEPARATOR === '\\')
		{
			if($background)
			{
				$command = '/b ' . $command;
			}

			return 'start ' . $command;
		}

		if($background)
		{
			$command .= ' &';
		}

		return $command;
	}
protected function buildCommand ( string $ command , bool $ background = false , bool $ sameEnvironment = true ) : string { if ( $ sameEnvironment && strpos ( $ command , '--env=' ) === false && ( $ environment = $ this -> app -> getEnvironment ( ) ) !== null ) { $ command .= ' --env=' . $ environment ; } $ command = PHP_BINARY . ' ' . $ this -> buildReactorPath ( ) . ' ' . $ command . ' 2>&1' ; if ( DIRECTORY_SEPARATOR === '\\' ) { if ( $ background ) { $ command = '/b ' . $ command ; } return 'start ' . $ command ; } if ( $ background ) { $ command .= ' &' ; } return $ command ; }
Returns command that we're going to execute.

@param string $command         Command
@param bool   $background      Is it a background process?
@param bool   $sameEnvironment Run command using the same environment?
Returns command that we re going to execute .