src/Listeners/Renderer/Debug/ConfigurationFileRenderer.php
/**
     * Renders the data to some output, e. g. the console or a logger.
     *
     * @param string $serial The serial of the import to render the dump artefacts for
     *
     * @return void
     */
Renders the data to some output, e. g. the console or a logger.
@param string $serial The serial of the import to render the dump artefacts for

@return void
Renders the data to some output e . g . the console or a logger . @param string $serial The serial of the import to render the dump artefacts for @return void
public function render(string $serial = null)
    {
        $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->write($this->dump($this->getConfiguration()), sprintf('%s/debug-configuration.json', $sourceDir));
    }
public function render ( string $ serial = null ) { $ 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 -> write ( $ this -> dump ( $ this -> getConfiguration ( ) ) , sprintf ( '%s/debug-configuration.json' , $ sourceDir ) ) ; }
Renders the data to some output, e. g. the console or a logger.
Renders the data to some output e . g . the console or a logger .
// load the actual status // clear the filecache // query whether or not the configured source directory is available // finally write the serialized configuration file to the source directory