custom/plugins/campaign/src/CityCampaign.php line 15

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace CityCampaign;
  4. use Shopware\Core\Framework\Plugin;
  5. use Shopware\Storefront\Framework\ThemeInterface;
  6. use Carbon\Carbon;
  7. // expect the vendor folder on Shopware store releases
  8. if (file_exists(dirname(__DIR__) . '/vendor/autoload.php')) {
  9.     require_once dirname(__DIR__) . '/vendor/autoload.php';
  10. }
  11. class CityCampaign extends Plugin
  12. {
  13.     public function executeComposerCommands(): bool
  14.     {
  15.         return true;
  16.     }
  17.     public function boot(): void
  18.     {
  19.         // 设置时区
  20.         // date_default_timezone_set( 'Asia/Taipei');
  21.         parent::boot();
  22.     }
  23. }