Space48 / magento2-demo-platformsh

🚀 Code and configuration required to deploy a Magento 2.x demo store to platform.sh
https://master-7rqtwti-g2imcmwdbx2e4.eu.platform.sh/
0 stars 0 forks source link

Replace direct queries with PDO #2

Open punkstar opened 6 years ago

punkstar commented 6 years ago

The executeDbQuery method in the DemoProvisioner uses a shell out to mysql to execute the query. There's no need to do this - replace it with PDO.

https://github.com/Space48/magento2-demo-platformsh/blob/1820b63a646273bca62e3de4ffb962b8609514c2/lib/Space48/PlatformSh/Magento/DemoProvisioner.php#L495-L526

punkstar commented 6 years ago

I've replaced the core_config_data updates with calls to bin/magento config:set. All that's remaining now is the admin user password change - we could just remove it.