src/Utils/DebugUtil.php
/**
     * The method to create the debugging artefacts in the appropriate directory.
     *
     * @param string $serial The serial to prepare the dump for
     *
     * @return void
     * @throws \Exception Is thrown, if the configuration can not be dumped
     */
The method to create the debugging artefacts in the appropriate directory.
@param string $serial The serial to prepare the dump for

@return void
@throws \Exception Is thrown, if the configuration can not be dumped
The method to create the debugging artefacts in the appropriate directory . @param string $serial The serial to prepare the dump for @return void @throws \ Exception Is thrown if the configuration can not be dumped
public function prepareDump(string $serial) : void
    {
        $status = $this->getRegistryProcessor()->getAttribute(RegistryKeys::STATUS);
        clearstatcache();
        if (!is_dir($sourceDir = $status[RegistryKeys::SOURCE_DIRECTORY])) {
            throw new \Exception(sprintf('Configured source directory %s is not available!', $sourceDir));
        }
        $this->getRenderer()->render($serial);
        $this->getSystemLogger()->info(sprintf('Successfully rendered the debug artefacts for serial "%s"', $serial));
    }
public function prepareDump ( string $ serial ) : void { $ status = $ this -> getRegistryProcessor ( ) -> getAttribute ( RegistryKeys :: STATUS ) ; clearstatcache ( ) ; if ( ! is_dir ( $ sourceDir = $ status [ RegistryKeys :: SOURCE_DIRECTORY ] ) ) { throw new \ Exception ( sprintf ( 'Configured source directory %s is not available!' , $ sourceDir ) ) ; } $ this -> getRenderer ( ) -> render ( $ serial ) ; $ this -> getSystemLogger ( ) -> info ( sprintf ( 'Successfully rendered the debug artefacts for serial "%s"' , $ serial ) ) ; }
The method to create the debugging artefacts in the appropriate directory.
The method to create the debugging artefacts in the appropriate directory .
// load the actual status // clear the filecache // query whether or not the configured source directory is available // render the debug artefacts // log a message that the debug artefacts has successfully been rendered