예제 #1
0
 /**
  * Render the activity
  *
  * @param ActivityStream $stream
  *
  * @return mixed
  */
 public function renderFilter(ActivityStream $stream)
 {
     $em = $this->objectManager->getRepository($stream->getObjectType());
     $entity = $em->find($stream->getObjectId());
     $bundleName = self::getBundleName($stream->getObjectType());
     return $this->twig->render($bundleName . ":Dashboard:" . $stream->getVerb() . ".html.twig", array('entity' => $entity, 'stream' => $stream));
 }