From 32d83a2c6f62dc56c5320c10da20f26c9986ae93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Knap?= Date: Mon, 7 Oct 2024 09:22:38 +0200 Subject: [PATCH] - added optimized dump-autoload after di:compile to make sure that it contains dynamically generated classes --- recipe/custom/magento2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe/custom/magento2.php b/recipe/custom/magento2.php index 94ef93c..5e33ef2 100644 --- a/recipe/custom/magento2.php +++ b/recipe/custom/magento2.php @@ -20,7 +20,7 @@ desc('Local DI compile'); task('magento:local:setup:di:compile', function () { - runLocally('{{local_bin/php}} {{local_src}}/bin/magento setup:di:compile'); + runLocally('{{local_bin/php}} {{local_src}}/bin/magento setup:di:compile && {{local_bin/composer}} dump-autoload -o --apcu'); }); // Remote commands