Exemplo n.º 1
0
 /**
  * @param WidgetFindEvent $widgetFindEvent
  *
  * @DI\Observe("icap_portfolio_widget_find_badges")
  */
 public function onWidgetFind(WidgetFindEvent $widgetFindEvent)
 {
     $widgetFindEvent->setWidget($this->entityManager->getRepository('IcapBadgeBundle:Portfolio\\BadgesWidget')->findOneByWidgetType($widgetFindEvent->getWidgetType(), $widgetFindEvent->getWidgetId(), $widgetFindEvent->getUser()));
 }
Exemplo n.º 2
0
 /**
  * @param WidgetFindEvent $widgetFindEvent
  *
  * @DI\Observe("icap_portfolio_widget_find_userInformation")
  * @DI\Observe("icap_portfolio_widget_find_text")
  * @DI\Observe("icap_portfolio_widget_find_skills")
  * @DI\Observe("icap_portfolio_widget_find_formations")
  * @DI\Observe("icap_portfolio_widget_find_experience")
  */
 public function onWidgetFind(WidgetFindEvent $widgetFindEvent)
 {
     $widgetFindEvent->setWidget($this->widgetManager->getWidget($widgetFindEvent->getWidgetType(), $widgetFindEvent->getWidgetId(), $widgetFindEvent->getUser()));
 }