src/Subjects/FileResolver/AbstractFileResolver.php
protected function initialize($serial)
    {

        // load the actual status
        $status = $this->getRegistryProcessor()->getAttribute($serial);

        // query whether or not the configured source directory is available
        if (!is_dir($sourceDir = $status[RegistryKeys::SOURCE_DIRECTORY])) {
            throw new \Exception(sprintf('Configured source directory "%s" is not available!', $sourceDir));
        }

        // set the source directory
        $this->setSourceDir($sourceDir);
    }
protected function initialize($serial)
    {

        // load the actual status
        $status = $this->getRegistryProcessor()->getAttribute($serial);

        // query whether or not the configured source directory is available
        if (!is_dir($sourceDir = $status[RegistryKeys::SOURCE_DIRECTORY])) {
            throw new \Exception(sprintf('Configured source directory "%s" is not available!', $sourceDir));
        }

        // set the source directory
        $this->setSourceDir($sourceDir);
    }
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