You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you please include yii\base\Event or create a class craft\commerce\events\Events so using your new events won't throw an exception?
Currently the following Error is thrown
Error
Class 'craft\commerce\events\Event' not found
<?php/** * @link https://craftcms.com/ * @copyright Copyright (c) Pixel & Tonic, Inc. * @license https://craftcms.github.io/license/ */namespace craft\commerce\events;
/** * Class SaleEvent * * @author Pixel & Tonic, Inc. <support@pixelandtonic.com> * @since 2.2 */classSaleEventextendsEvent// <----- Event not defined
{
// Properties// ==========================================================================/** * @var Sale sale */public$sale;
/** * @var bool Whether the sale is brand new */public$isNew = false;
}
Additional info
Commerce version: 2.2.2
The text was updated successfully, but these errors were encountered:
Anubarak
changed the title
Include yii\base\Event into SaleEvent and DiscountEvent
Include yii\base\Event into SaleEvent
Oct 24, 2019
Description
Could you please include
yii\base\Event
or create a classcraft\commerce\events\Events
so using your new events won't throw an exception?Currently the following Error is thrown
Additional info
The text was updated successfully, but these errors were encountered: