Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Commit

Permalink
remove use of HookUtil @Guite
Browse files Browse the repository at this point in the history
  • Loading branch information
craigh committed Feb 26, 2016
1 parent ab9b13d commit 25d5e32
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions PagesModuleInstaller.php
Expand Up @@ -18,7 +18,6 @@
use CategoryRegistryUtil;
use CategoryUtil;
use Doctrine\Common\Collections\ArrayCollection;
use HookUtil;
use Zikula\Core\AbstractExtensionInstaller;
use Zikula\PagesModule\Entity\CategoryAssignmentEntity;
use Zikula\PagesModule\Entity\PageEntity;
Expand Down Expand Up @@ -73,7 +72,7 @@ public function install()
);
$this->setVars($modvars);
$hookContainer = $this->hookApi->getHookContainerInstance($this->bundle->getMetaData());
HookUtil::registerSubscriberBundles($hookContainer->getHookSubscriberBundles());
$this->hookApi->registerSubscriberBundles($hookContainer->getHookSubscriberBundles());
$this->createIntroPage();
// initialisation successful
return true;
Expand Down Expand Up @@ -169,7 +168,7 @@ public function uninstall()
// Delete entries from category registry
CategoryRegistryUtil::deleteEntry($this->bundle->getName());
$hookContainer = $this->hookApi->getHookContainerInstance($this->bundle->getMetaData());
HookUtil::unregisterSubscriberBundles($hookContainer->getHookSubscriberBundles());
$this->hookApi->unregisterSubscriberBundles($hookContainer->getHookSubscriberBundles());
// Deletion successful
return true;
}
Expand Down

0 comments on commit 25d5e32

Please sign in to comment.