public function onUpdateEvent(UpdateConfigurationEvent $event)
    {
        //====================================================================//
        // Check if Cache is Enabled
        if (!$this->configuration['cache']['enabled']) {
            Splash::log()->war('[Splash] Cache is Disabled');

            return;
        }
        //====================================================================//
        // Check if Filesystem Cache Exists
        if (!isset($this->cache)) {
            $this->cache = new FilesystemCache();
        }

        //====================================================================//
        // Detect Pointed Server Host
        $serverId = $this->hasWebserviceConfiguration($event->getWebserviceId());
        if ($serverId) {
            //====================================================================//
            // Update Configuration in Cache
            $this->cache->set(
                static::$cacheCfgKey.$serverId,
                $event->getConfiguration(),
                $this->configuration['cache']['lifetime']
            );
        }
        //====================================================================//
        // Stop Event Propagation
        $event->stopPropagation();
    }
public function onUpdateEvent(UpdateConfigurationEvent $event)
    {
        //====================================================================//
        // Check if Cache is Enabled
        if (!$this->configuration['cache']['enabled']) {
            Splash::log()->war('[Splash] Cache is Disabled');

            return;
        }
        //====================================================================//
        // Check if Filesystem Cache Exists
        if (!isset($this->cache)) {
            $this->cache = new FilesystemCache();
        }

        //====================================================================//
        // Detect Pointed Server Host
        $serverId = $this->hasWebserviceConfiguration($event->getWebserviceId());
        if ($serverId) {
            //====================================================================//
            // Update Configuration in Cache
            $this->cache->set(
                static::$cacheCfgKey.$serverId,
                $event->getConfiguration(),
                $this->configuration['cache']['lifetime']
            );
        }
        //====================================================================//
        // Stop Event Propagation
        $event->stopPropagation();
    }
public function onUpdateEvent ( UpdateConfigurationEvent $ event ) { //====================================================================// // Check if Cache is Enabled if ( ! $ this -> configuration [ 'cache' ] [ 'enabled' ] ) { Splash :: log ( ) -> war ( '[Splash] Cache is Disabled' ) ; return ; } //====================================================================// // Check if Filesystem Cache Exists if ( ! isset ( $ this -> cache ) ) { $ this -> cache = new FilesystemCache ( ) ; } //====================================================================// // Detect Pointed Server Host $ serverId = $ this -> hasWebserviceConfiguration ( $ event -> getWebserviceId ( ) ) ; if ( $ serverId ) { //====================================================================// // Update Configuration in Cache $ this -> cache -> set ( static :: $ cacheCfgKey . $ serverId , $ event -> getConfiguration ( ) , $ this -> configuration [ 'cache' ] [ 'lifetime' ] ) ; } //====================================================================// // Stop Event Propagation $ event -> stopPropagation ( ) ; }
On Connector Configuration Update Event

@param UpdateConfigurationEvent $event
On Connector Configuration Update Event