plugins/RewardPointPlugin/RewardPointPlugin.php line 9

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