PHP code example of spryker-demo / merchant-onboarding-feature

1. Go to this page and download the library: Download spryker-demo/merchant-onboarding-feature library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

spryker-demo / merchant-onboarding-feature example snippets


# src/Pyz/Zed/Acl/AclConfig.php

protected function addPyzMerchantPortalInstallerRules(array $installerRules): array
{
    $bundleNames = [
        ...
        'merchant-onboarding-merchant-portal-gui',
    ];
    ...
}

# src/Pyz/Zed/AclMerchantPortal/AclMerchantPortalDependencyProvider.php

use SprykerDemo\Zed\MerchantOnboardingMerchantPortalGui\Communication\Plugin\AclMerchantPortal\MerchantOnboardingMerchantPortalGuiMerchantAclRuleExpanderPlugin;

protected function getMerchantAclRuleExpanderPlugins(): array
{
    return [
        ...
        new MerchantOnboardingMerchantPortalGuiMerchantAclRuleExpanderPlugin(),
    ];
}


# src/Pyz/Zed/DataImport/DataImportDependencyProvider.php

use SprykerDemo\Zed\MerchantOnboardingDataImport\Communication\Plugin\DataImport\MerchantOnboardingDataImportPlugin;

protected function getDataImporterPlugins(): array
{
    return [
        ...
        new MerchantOnboardingDataImportPlugin(),
    ];
}

# src/Pyz/Zed/Merchant/MerchantDependencyProvider.php

use SprykerDemo\Zed\MerchantOnboarding\Communication\Plugin\Merchant\MerchantStateMachineExpanderPlugin;
use SprykerDemo\Zed\MerchantOnboarding\Communication\Plugin\Merchant\MerchantStateMachinePostCreatePlugin;

protected function getMerchantPostCreatePlugins(): array
{
    return [
        ...
        new MerchantStateMachinePostCreatePlugin(),
    ];
}

protected function getMerchantExpanderPlugins(): array
{
    return [
        ...
        new MerchantStateMachineExpanderPlugin(),
    ];
}

# src/Pyz/Zed/MerchantGui/MerchantGuiDependencyProvider.php

use SprykerDemo\Zed\MerchantOnboardingGui\Communication\Plugin\MerchantOnboardingMerchantTableDataExpanderPlugin;
use SprykerDemo\Zed\MerchantOnboardingGui\Communication\Plugin\MerchantOnboardingMerchantTableHeaderExpanderPlugin;

protected function getMerchantTableDataExpanderPlugins(): array
{
    return [
        new MerchantOnboardingMerchantTableDataExpanderPlugin(),
    ];
}

protected function getMerchantTableHeaderExpanderPlugins(): array
{
    return [
        new MerchantOnboardingMerchantTableHeaderExpanderPlugin(),
    ];
}

# src/Pyz/Zed/StateMachine/StateMachineDependencyProvider.php

use SprykerDemo\Zed\MerchantOnboarding\Communication\Plugin\MerchantOnboardingStateMachineHandlerPlugin;

protected function getStateMachineHandlers(): array
{
    return [
        ...
        new MerchantOnboardingStateMachineHandlerPlugin(),
    ];
}