public function updateAction(ServerRequest $request, Response $response)
    {
        $script         = $GLOBALS['TYPO3_CONF_VARS']['EXT']['extParams']['tw_componentlibrary']['script'];
        $descriptorspec = array(
            0 => array('pipe', 'r'),
            1 => array('pipe', 'w'),
            2 => array('pipe', 'a')
        );

        $process = proc_open($script, $descriptorspec, $pipes);
        stream_get_contents($pipes[1]);
        fclose($pipes[1]);
        $status = proc_get_status($process);

        // If an error occured
        if ($status['exitcode']) {
            return $response->withStatus(500);
        }

        return $response;
    }
public function updateAction(ServerRequest $request, Response $response)
    {
        $script         = $GLOBALS['TYPO3_CONF_VARS']['EXT']['extParams']['tw_componentlibrary']['script'];
        $descriptorspec = array(
            0 => array('pipe', 'r'),
            1 => array('pipe', 'w'),
            2 => array('pipe', 'a')
        );

        $process = proc_open($script, $descriptorspec, $pipes);
        stream_get_contents($pipes[1]);
        fclose($pipes[1]);
        $status = proc_get_status($process);

        // If an error occured
        if ($status['exitcode']) {
            return $response->withStatus(500);
        }

        return $response;
    }
public function updateAction ( ServerRequest $ request , Response $ response ) { $ script = $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'EXT' ] [ 'extParams' ] [ 'tw_componentlibrary' ] [ 'script' ] ; $ descriptorspec = array ( 0 => array ( 'pipe' , 'r' ) , 1 => array ( 'pipe' , 'w' ) , 2 => array ( 'pipe' , 'a' ) ) ; $ process = proc_open ( $ script , $ descriptorspec , $ pipes ) ; stream_get_contents ( $ pipes [ 1 ] ) ; fclose ( $ pipes [ 1 ] ) ; $ status = proc_get_status ( $ process ) ; // If an error occured if ( $ status [ 'exitcode' ] ) { return $ response -> withStatus ( 500 ) ; } return $ response ; }
Update the fractal component library

@param ServerRequest $request
@param Response $response

@return bool
Update the fractal component library