GLOBAL_INITIATORS
GLOBAL_INITIATORS ='real_utils_initiators'
The initiators need to be declared globally, due to the fact the class instance itself is scoped and can exist more than once.
Core for real-utils. It is only initialized once and holds all available initiators.
$assets :\DevOwl\RealUtils\Assets
Assets handler.
$ratingHandler :\DevOwl\RealUtils\RatingHandler
Rating handler.
$crossSellingHandler :\DevOwl\RealUtils\cross\CrossSellingHandler
Cross-selling handler.
addInitiator(\DevOwl\RealUtils\AbstractInitiator $initiator)
Add an initiator.
\DevOwl\RealUtils\AbstractInitiator | $initiator |
getInitiators(): array<mixed,\DevOwl\RealUtils\AbstractInitiator>
Get all initiators.
getInstance(): \DevOwl\RealUtils\Core
Get singleton core class.