src/Factory/DcGeneralFactory.php
public static function deriveFromEnvironment(EnvironmentInterface $environment)
    {
        $factory = static::deriveEmptyFromEnvironment($environment);
        $factory->setContainerName($environment->getDataDefinition()->getName());
        return $factory;
    }
public static function deriveFromEnvironment(EnvironmentInterface $environment)
    {
        $factory = static::deriveEmptyFromEnvironment($environment);
        $factory->setContainerName($environment->getDataDefinition()->getName());
        return $factory;
    }
public static function deriveFromEnvironment ( EnvironmentInterface $ environment ) { $ factory = static :: deriveEmptyFromEnvironment ( $ environment ) ; $ factory -> setContainerName ( $ environment -> getDataDefinition ( ) -> getName ( ) ) ; return $ factory ; }
Create a new factory with basic settings and same container name as the given environment is build for.

This factory can be used to create a second Container, Environment, DcGeneral for the same container.

@param EnvironmentInterface $environment The environment to use as base.

@return DcGeneralFactory
Create a new factory with basic settings and same container name as the given environment is build for .