src/Subjects/AbstractSubject.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();
        foreach ($this->getStatus() as $key => $status) {
            $registryProcessor->mergeAttributesRecursive($key, $status);
        }
        $availableObservers = $this->getObservers();
        foreach ($availableObservers as $observers) {
            foreach ($observers as $observer) {
                if ($observer instanceof HookAwareInterface) {
                    $observer->tearDown($serial);
                }
            }
        }
        $this->getSystemLogger()->debug(
            sprintf('Subject %s successfully updated status data for import %s', get_class($this), $serial)
        );
    }
public function tearDown ( $ serial ) { $ registryProcessor = $ this -> getRegistryProcessor ( ) ; foreach ( $ this -> getStatus ( ) as $ key => $ status ) { $ registryProcessor -> mergeAttributesRecursive ( $ key , $ status ) ; } $ availableObservers = $ this -> getObservers ( ) ; foreach ( $ availableObservers as $ observers ) { foreach ( $ observers as $ observer ) { if ( $ observer instanceof HookAwareInterface ) { $ observer -> tearDown ( $ serial ) ; } } } $ this -> getSystemLogger ( ) -> debug ( sprintf ( 'Subject %s successfully updated status data for import %s' , get_class ( $ this ) , $ serial ) ) ; }
Clean up the global data after importing the variants.
Clean up the global data after importing the variants .
// load the registry processor // update the source directory for the next subject // load the available observers // process the observers // invoke the pre-import/import and post-import observers /** @var \TechDivision\Import\Observers\ObserverInterface $observer */ // log a debug message with the new source directory