public function onReflectSuccess(GenericEvent $event)
    {
        if (sha1(serialize($event['ast'])) !== $this->hashUserData) {
            // cache need to be refresh
            ++$this->stats[self::STATS_MISSES];
            $this->storage->cache($event);
        }
    }
public function onReflectSuccess(GenericEvent $event)
    {
        if (sha1(serialize($event['ast'])) !== $this->hashUserData) {
            // cache need to be refresh
            ++$this->stats[self::STATS_MISSES];
            $this->storage->cache($event);
        }
    }
public function onReflectSuccess ( GenericEvent $ event ) { if ( sha1 ( serialize ( $ event [ 'ast' ] ) ) !== $ this -> hashUserData ) { // cache need to be refresh ++ $ this -> stats [ self :: STATS_MISSES ] ; $ this -> storage -> cache ( $ event ) ; } }
If possible, store results in cache after source parsing.

@param Event $event Current event emitted by the manager (Reflect class)

@return void
If possible store results in cache after source parsing .