src/Subjects/FileResolver/AbstractFileResolver.php
/**
     * Initializes the file resolver for the import process with the passed serial.
     *
     * @param string $serial The unique identifier of the actual import process
     *
     * @return void
     * @throws \Exception Is thrown if the configured source directory is not available
     */
Initializes the file resolver for the import process with the passed serial.
@param string $serial The unique identifier of the actual import process

@return void
@throws \Exception Is thrown if the configured source directory is not available
Initializes the file resolver for the import process with the passed serial . @param string $serial The unique identifier of the actual import process @return void @throws \ Exception Is thrown if the configured source directory is not available
protected function initialize(string $serial) : void
    {
        $status = $this->getRegistryProcessor()->getAttribute(RegistryKeys::STATUS);
        if ($this->getFilesystemAdapter()->isDir($sourceDir = $status[RegistryKeys::SOURCE_DIRECTORY])) {
            $this->setSourceDir($sourceDir);
            return;
        }
        throw new \Exception(sprintf('Configured source directory "%s" is not available!', $sourceDir));
    }
protected function initialize ( string $ serial ) : void { $ status = $ this -> getRegistryProcessor ( ) -> getAttribute ( RegistryKeys :: STATUS ) ; if ( $ this -> getFilesystemAdapter ( ) -> isDir ( $ sourceDir = $ status [ RegistryKeys :: SOURCE_DIRECTORY ] ) ) { $ this -> setSourceDir ( $ sourceDir ) ; return ; } throw new \ Exception ( sprintf ( 'Configured source directory "%s" is not available!' , $ sourceDir ) ) ; }
Initializes the file resolver for the import process with the passed serial.
Initializes the file resolver for the import process with the passed serial .
// load the actual status // query whether or not the configured source directory is available // set the source directory, if it is accessible // return immediately // throw an exception otherwise