Bootstrap

Extends \ViisonCommon_Plugin_BootstrapV15

package

Default

Methods

Registers the plugin's namespaces.

afterInit() 

Adds the pickware:erp:stock:init CLI command.

onAddConsoleCommand(\Enlight_Event_EventArgs $args) : \Shopware\Plugins\ViisonPickwareERP\Commands\InitializeAllArticlesCommand

Arguments

$args

\Enlight_Event_EventArgs

Response

\Shopware\Plugins\ViisonPickwareERP\Commands\InitializeAllArticlesCommand

This callback function is triggered at the very beginning of the dispatch process and allows us to register additional events on the fly.

onStartDispatch(\Enlight_Event_EventArgs $args) 

Arguments

$args

\Enlight_Event_EventArgs

Returns true, if this plugin binary is a test version, which has expired. Otherwise false.

pluginTestExpired() : boolean

Response

boolean

First checks whether a plugin test validity date is set and, if it is, determines how many days of the testing period are left. Finally the licenses are checked for a valid Shopware PE license. If this license exists, any previously determined testing period is overwritten (with 100) to allow using the test version binary e.g. after upgrading to Shopware PE during the testing period.

pluginTestStatus() : array|null

Response

array|null

Constants

VERSION

VERSION

LOCK

LOCK

SECONDS

SECONDS

ID

ID

NAME

NAME

NUMBERS

NUMBERS

KEY

KEY

START

START

DESCRIPTION

DESCRIPTION

REPLACEMENTS

REPLACEMENTS