Uninstall module via ZIP file
If you want to uninstall the module:
- Delete the LyranetworkSogecommerce directory at the root of your site.
- In the composer.json file at the root of the site, delete the line below:
"Lyranetwork\\Sogecommerce\\": "LyranetworkSogecommerce/src/"
- In the bundles.php file in the config directory, delete the line below:
Lyranetwork\Sogecommerce\LyranetworkSogecommercePlugin::class => ['all' => true],
- In the routes.yaml file in the config directory, delete the lines below:
sylius_sogecommerce: resource: "@LyranetworkSogecommercePlugin/Resources/config/routing.yaml"
- In the _sylius.yaml file in the directoryconfig/packages, delete the lines below:
winzou_state_machine: sylius_payment: callbacks: after: custom_action: on: ["process", "authorize", "complete"] do: ["@lyranetworksogecommerce.order_service", "sendConfirmationEmail"] args: ["object"]
- In the services.yaml file in the directoryconfig, delete the lines below:
services: [...] lyranetworksogecommerce.order_service: class: Lyranetwork\Sogecommerce\Service\OrderService public: true
- Delete or remove all additions made to templates in templates/bundles/:
SyliusAdminBundle\PaymentMethod\_form.html.twig SyliusAdminBundle\OrderShow\_payment.html.twig SyliusShopBundle\Checkout\SelectPayment\_choice.html.twig SyliusUiBundle\Form\theme.html.twig
- Open the terminal from the root of your website.
- Enter the commands below:
composer dump-autoload
php bin/console cache:clear