10000 feature #33098 added `Process::getLastOutputTime()` method (connorhu) · symfony/symfony@eae614b · GitHub
[go: up one dir, main page]

Skip to content

Commit eae614b

Browse files
committed
feature #33098 added Process::getLastOutputTime() method (connorhu)
This PR was squashed before being merged into the 5.0-dev branch (closes #33098). Discussion ---------- added `Process::getLastOutputTime()` method | Q | A | ------------- | --- | Branch? | 4.4 for features | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #28026 | License | MIT | Doc PR | - Commits ------- 6359145 added `Process::getLastOutputTime()` method
2 parents 64d2be5 + 6359145 commit eae614b

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

‎src/Symfony/Component/Process/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ CHANGELOG
1212
4.4.0
1313
-----
1414

15-
* deprecated `Process::inheritEnvironmentVariables()`: env variables are always inherited.
15+
* deprecated `Process::inheritEnvironmentVariables()`: env variables are always inherited.
16+
* added `Process::getLastOutputTime()` method
1617

1718
4.2.0
1819
-----

‎src/Symfony/Component/Process/Process.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -948,6 +948,16 @@ public function addErrorOutput(string $line)
948948
fseek($this->stderr, $this->incrementalErrorOutputOffset);
949949
}
950950

951+
/**
952+
* Gets the last output time in seconds
953+
*
954+
* @return float|null The last output time in seconds or null if it isn't started
955+
*/
956+
public function getLastOutputTime(): ?float
957+
{
958+
return $this->lastOutputTime;
959+
}
960+
951961
/**
952962
* Gets the command line to be executed.
953963
*

0 commit comments

Comments
 (0)
0