Newscoop\Services\CommentService::update PHP Метод

update() публичный Метод

Receives notifications of points events.
public update ( GenericEvent $event ) : void
$event Newscoop\EventDispatcher\Events\GenericEvent
Результат void
    public function update(GenericEvent $event)
    {
        $params = $event->getArguments();
        $method = str_replace('.', '_', $event->getName());
        $this->{$method}($params);
        $this->em->flush();
        $cacheService = \Zend_Registry::get('container')->getService('newscoop.cache');
        $cacheService->clearNamespace('comment');
    }