The lexik/LexikMaintenanceBundle is only required by require-dev, which is therefore not installed when omitting the --dev in the installation process. Without a check in theMakeServicePublicPass the cache:clear command will fail with an exception.
You have requested a non-existent service "lexik_maintenance.driver.factory
By checking if the service exists beforehand, we can skip non existent services and aliases.
The
lexik/LexikMaintenanceBundle
is only required byrequire-dev
, which is therefore not installed when omitting the--dev
in the installation process. Without a check in theMakeServicePublicPass
thecache:clear
command will fail with an exception.By checking if the service exists beforehand, we can skip non existent services and aliases.