src/apis/ProxyController.php
public function actionClose($buildToken)
    {
        $build = ProxyBuild::findOne(['build_token' => $buildToken, 'is_complet' => 0]);
        
        if (!$build) {
            throw new ForbiddenHttpException("Unable to find build from token.");
        }
        
        $build->updateAttributes(['is_complet' => 1]);
    }
public function actionClose($buildToken)
    {
        $build = ProxyBuild::findOne(['build_token' => $buildToken, 'is_complet' => 0]);
        
        if (!$build) {
            throw new ForbiddenHttpException("Unable to find build from token.");
        }
        
        $build->updateAttributes(['is_complet' => 1]);
    }
public function actionClose ( $ buildToken ) { $ build = ProxyBuild :: findOne ( [ 'build_token' => $ buildToken , 'is_complet' => 0 ] ) ; if ( ! $ build ) { throw new ForbiddenHttpException ( "Unable to find build from token." ) ; } $ build -> updateAttributes ( [ 'is_complet' => 1 ] ) ; }
Close the current build.

@param string $buildToken
@throws ForbiddenHttpException
Close the current build .