Laminas module which loads ConfigProvider classes uses in Mezzio.
composer require eventjet/laminas-mezzio-config-moduleAfter installation, copy the empty config file into your application:
cp vendor/eventjet/laminas-mezzio-config-module/config/mezzio-modules.config.php ./config/Then, add your ConfigProviders to the array in config/mezzio-modules.config.php.