src/Listeners/InitializeRegistryListener.php
/**
     * Handle the event.
     *
     * @param \League\Event\EventInterface $event The event that triggered the listener
     *
     * @return void
     */
Handle the event.
@param \League\Event\EventInterface $event The event that triggered the listener

@return void
Handle the event . @param \ League \ Event \ EventInterface $event The event that triggered the listener @return void
public function handle(EventInterface $event)
    {
        $status = array(
            RegistryKeys::STATUS                => 1,
            RegistryKeys::BUNCHES               => 0,
            RegistryKeys::STARTED_AT            => time(),
            RegistryKeys::FINISHED_AT           => 0,
            RegistryKeys::SOURCE_DIRECTORY      => $this->getConfiguration()->getSourceDir(),
            RegistryKeys::TARGET_DIRECTORY      => $this->getConfiguration()->getTargetDir(),
            RegistryKeys::MISSING_OPTION_VALUES => array()
        );
        $this->getRegistryProcessor()->setAttribute(CacheKeys::STATUS, $status);
    }
public function handle ( EventInterface $ event ) { $ status = array ( RegistryKeys :: STATUS => 1 , RegistryKeys :: BUNCHES => 0 , RegistryKeys :: STARTED_AT => time ( ) , RegistryKeys :: FINISHED_AT => 0 , RegistryKeys :: SOURCE_DIRECTORY => $ this -> getConfiguration ( ) -> getSourceDir ( ) , RegistryKeys :: TARGET_DIRECTORY => $ this -> getConfiguration ( ) -> getTargetDir ( ) , RegistryKeys :: MISSING_OPTION_VALUES => array ( ) ) ; $ this -> getRegistryProcessor ( ) -> setAttribute ( CacheKeys :: STATUS , $ status ) ; }
Handle the event.
Handle the event .
// initialize the status // register the status and the references in the registry (use the serial as tag also)