/**
  * @param ObjectManager $manager
  */
 public function load(ObjectManager $manager)
 {
     $trans = $this->container->get('translator');
     $factory = $this->container->get('mautic.factory');
     $repo = $factory->getModel('category.category')->getRepository();
     $today = new \DateTime();
     $cat = new Category();
     $cat->setBundle('page');
     $events = 'Events';
     $cat->setDateAdded($today);
     $cat->setTitle($events);
     $cat->setAlias(strtolower($events));
     $repo->saveEntity($cat);
     $this->setReference('page-cat-1', $cat);
 }
 /**
  * {@inheritDoc}
  */
 public function __toString()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, '__toString', array());
     return parent::__toString();
 }