src/FrontendEditor.php
public function createDcGeneral($containerName): EnvironmentInterface
    {
        if (!array_key_exists($containerName, self::$environments)) {
            $dcGeneral = (new DcGeneralFactory())
                ->setContainerName($containerName)
                ->setEventDispatcher($this->dispatcher)
                ->setTranslator($this->translator)
                ->createDcGeneral();

            self::$environments[$containerName] = $dcGeneral->getEnvironment();
        }

        return self::$environments[$containerName];
    }
public function createDcGeneral($containerName): EnvironmentInterface
    {
        if (!array_key_exists($containerName, self::$environments)) {
            $dcGeneral = (new DcGeneralFactory())
                ->setContainerName($containerName)
                ->setEventDispatcher($this->dispatcher)
                ->setTranslator($this->translator)
                ->createDcGeneral();

            self::$environments[$containerName] = $dcGeneral->getEnvironment();
        }

        return self::$environments[$containerName];
    }
Create the dc-general and return it's environment instance.

@param string $containerName The name of the data container to edit.

@return EnvironmentInterface