plugins/KnowledgeBasePlugin/KnowledgeBasePlugin.php line 8

Open in your IDE?
  1. <?php
  2. namespace KnowledgeBasePlugin;
  3. use Codeages\PluginBundle\System\PluginBase;
  4. use KnowledgeBasePlugin\Biz\KnowledgeBaseServiceProvider;
  5. class KnowledgeBasePlugin extends PluginBase
  6. {
  7.     public function boot()
  8.     {
  9.         parent::boot();
  10.         $this->registerBiz();
  11.     }
  12.     public function getEnabledExtensions()
  13.     {
  14.         return ['DataTag''StatusTemplate''DataDict''NotificationTemplate'];
  15.     }
  16.     protected function registerBiz()
  17.     {
  18.         $biz $this->container->get('biz');
  19.         $biz->register(new KnowledgeBaseServiceProvider());
  20.     }
  21. }