Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
changed keepalive service detection
Browse files Browse the repository at this point in the history
  • Loading branch information
svensp committed Aug 20, 2019
1 parent d250c92 commit 0a2343d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/Blueprint/PhpCommands/Parser/ArrayParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ public function parse( string $name, $data, $version ) {
if ( array_key_exists( 'restart', $data ) )
$phpCommand->setRestart( $data['restart'] );

if ( array_key_exists( 'keepalive', $data ) )
$phpCommand->setKeepaliveService( $data['keepalive'] );
if ( array_key_exists( 'keepalive', $data ) ) {
if($data['keepalive'] === 'true')
$phpCommand->setKeepaliveService( true );
if($data['keepalive'])
$phpCommand->setKeepaliveService( true );
}

return $phpCommand;
}
Expand Down

0 comments on commit 0a2343d

Please sign in to comment.