src/Listeners/InitializeRegistryListener.php
public function handle(EventInterface $event, ApplicationInterface $application = null)
    {

        // initialize the status
        $status = array(
            RegistryKeys::STATUS                => 1,
            RegistryKeys::BUNCHES               => 0,
            RegistryKeys::SOURCE_DIRECTORY      => $this->getConfiguration()->getSourceDir(),
            RegistryKeys::MISSING_OPTION_VALUES => array()
        );

        // append it to the registry
        $this->getRegistryProcessor()->setAttribute($application->getSerial(), $status);
    }
public function handle(EventInterface $event, ApplicationInterface $application = null)
    {

        // initialize the status
        $status = array(
            RegistryKeys::STATUS                => 1,
            RegistryKeys::BUNCHES               => 0,
            RegistryKeys::SOURCE_DIRECTORY      => $this->getConfiguration()->getSourceDir(),
            RegistryKeys::MISSING_OPTION_VALUES => array()
        );

        // append it to the registry
        $this->getRegistryProcessor()->setAttribute($application->getSerial(), $status);
    }
Handle the event.

@param \League\Event\EventInterface              $event       The event that triggered the listener
@param \TechDivision\Import\ApplicationInterface $application The application instance

@return void