for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Copyright © Vaimo Group. All rights reserved.
* See LICENSE_VAIMO.txt for license details.
*/
namespace Vaimo\ComposerPatches\Utils;
class RuntimeUtils
{
public function setEnvironmentValues($values)
foreach ($values as $name => $value) {
putenv($name . '=' . $value);
}
public function executeWithPostAction($action, $postAction)
try {
$result = $action();
} catch (\Exception $exception) {
$postAction();
throw $exception;
return $result;