PHP code example of monsieurbiz / sylius-contact-request-plugin

1. Go to this page and download the library: Download monsieurbiz/sylius-contact-request-plugin 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/ */

    

monsieurbiz / sylius-contact-request-plugin example snippets




return [
    //..
    MonsieurBiz\SyliusContactRequestPlugin\MonsieurBizSyliusContactRequestPlugin::class => ['all' => true],
];
yaml
sylius_shop_contact_request:
    path: /{_locale}/contact
    -z]{2}|[0-9]{3}))?$
    methods: [GET, POST]
    defaults:
        _controller: sylius.controller.shop.contact::requestAction
        _sylius:
            redirect: sylius_shop_homepage
            template: '@MonsieurBizSyliusContactRequestPlugin/Shop/ContactRequest/request.html.twig'