src/MetaModelsServiceContainer.php
public function getService($serviceName)
    {
        // @codingStandardsIgnoreStart
        @trigger_error(
            '"' .__METHOD__ . '" is deprecated as the service container will get removed.',
            E_USER_DEPRECATED
        );
        // @codingStandardsIgnoreEnd

        // Hacked in here as initialization is dead now.
        if (!isset($this->services[(string) $serviceName]) && 'metamodels-view-combinations' === $serviceName) {
            $determinator = \System::getContainer()->get('cca.dc-general.scope-matcher');
            switch (true) {
                case $determinator->currentScopeIsFrontend():
                    $this->services['metamodels-view-combinations'] =
                        new \MetaModels\FrontendIntegration\ViewCombinations(
                            $this,
                            $GLOBALS['container']['user'],
                            \System::getContainer()->get('database_connection')
                        );
                    break;
                case $determinator->currentScopeIsBackend():
                    $this->services['metamodels-view-combinations'] =
                        new \MetaModels\BackendIntegration\ViewCombinations(
                            $this,
                            $GLOBALS['container']['user'],
                            \System::getContainer()->get('database_connection')
                        );
                    break;
                default:
            }
        }

        return ($this->services[(string) $serviceName] ?? null);
    }
public function getService($serviceName)
    {
        // @codingStandardsIgnoreStart
        @trigger_error(
            '"' .__METHOD__ . '" is deprecated as the service container will get removed.',
            E_USER_DEPRECATED
        );
        // @codingStandardsIgnoreEnd

        // Hacked in here as initialization is dead now.
        if (!isset($this->services[(string) $serviceName]) && 'metamodels-view-combinations' === $serviceName) {
            $determinator = \System::getContainer()->get('cca.dc-general.scope-matcher');
            switch (true) {
                case $determinator->currentScopeIsFrontend():
                    $this->services['metamodels-view-combinations'] =
                        new \MetaModels\FrontendIntegration\ViewCombinations(
                            $this,
                            $GLOBALS['container']['user'],
                            \System::getContainer()->get('database_connection')
                        );
                    break;
                case $determinator->currentScopeIsBackend():
                    $this->services['metamodels-view-combinations'] =
                        new \MetaModels\BackendIntegration\ViewCombinations(
                            $this,
                            $GLOBALS['container']['user'],
                            \System::getContainer()->get('database_connection')
                        );
                    break;
                default:
            }
        }

        return ($this->services[(string) $serviceName] ?? null);
    }
{@inheritdoc}

@SuppressWarnings(PHPMD.Superglobals)
@SuppressWarnings(PHPMD.CamelCaseVariableName)

@deprecated The service container will get removed, use the symfony service container instead.