src/Viserio/Component/Foundation/AbstractKernel.php
public function registerServiceProviders(): array
    {
        $providersPath = $this->getConfigPath('serviceproviders.php');

        $providers = [];

        if (\file_exists($providersPath)) {
            $providers = (array) require $providersPath;
        }

        $providersEnvPath = $this->getConfigPath($this->getEnvironment() . \DIRECTORY_SEPARATOR . 'serviceproviders.php');

        if (\file_exists($providersEnvPath)) {
            $providers = \array_merge($providers, (array) require $providersEnvPath);
        }

        return $providers;
    }
public function registerServiceProviders(): array
    {
        $providersPath = $this->getConfigPath('serviceproviders.php');

        $providers = [];

        if (\file_exists($providersPath)) {
            $providers = (array) require $providersPath;
        }

        $providersEnvPath = $this->getConfigPath($this->getEnvironment() . \DIRECTORY_SEPARATOR . 'serviceproviders.php');

        if (\file_exists($providersEnvPath)) {
            $providers = \array_merge($providers, (array) require $providersEnvPath);
        }

        return $providers;
    }
Register all of the application / kernel service providers.

@return array