src/Subjects/MoveFilesSubject.php
/**
     * Clean up the global data after importing the variants.
     *
     * @param string $serial The serial of the actual import
     *
     * @return void
     */
Clean up the global data after importing the variants.
@param string $serial The serial of the actual import

@return void
Clean up the global data after importing the variants . @param string $serial The serial of the actual import @return void
public function tearDown($serial)
    {
        $registryProcessor = $this->getRegistryProcessor();
        $registryProcessor->mergeAttributesRecursive(
            RegistryKeys::STATUS,
            array(
                RegistryKeys::TARGET_DIRECTORY => $newSourceDir = $this->getNewSourceDir($serial),
                RegistryKeys::SOURCE_DIRECTORY => $newSourceDir
            )
        );
        $this->getSystemLogger()->debug(
            sprintf('Subject %s successfully updated source directory to %s', get_class($this), $newSourceDir)
        );
        parent::tearDown($serial);
    }
public function tearDown ( $ serial ) { $ registryProcessor = $ this -> getRegistryProcessor ( ) ; $ registryProcessor -> mergeAttributesRecursive ( RegistryKeys :: STATUS , array ( RegistryKeys :: TARGET_DIRECTORY => $ newSourceDir = $ this -> getNewSourceDir ( $ serial ) , RegistryKeys :: SOURCE_DIRECTORY => $ newSourceDir ) ) ; $ this -> getSystemLogger ( ) -> debug ( sprintf ( 'Subject %s successfully updated source directory to %s' , get_class ( $ this ) , $ newSourceDir ) ) ; parent :: tearDown ( $ serial ) ; }
Clean up the global data after importing the variants.
Clean up the global data after importing the variants .
// load the registry processor // update target and source directory for the next subject // log a debug message with the new source directory // invoke the parent method