메소드 | 설명 | |
---|---|---|
__callStatic ( string $name, array $arguments ) : mixed | Creates a new instance from a specified config, specifically meant to be used as static factory. | |
__construct ( string $configKey = 'orm_default' ) | ||
__invoke ( Interop\Container\ContainerInterface $container ) : mixed |
메소드 | 설명 | |
---|---|---|
createWithConfig ( Interop\Container\ContainerInterface $container, string $configKey ) : mixed | Creates a new instance from a specified config. | |
getDefaultConfig ( string $configKey ) : array | Returns the default config. | |
retrieveConfig ( Interop\Container\ContainerInterface $container, string $configKey, string $section ) : array | Retrieves the config for a specific section. | |
retrieveDependency ( Interop\Container\ContainerInterface $container, string $configKey, string $section, string $factoryClassName ) : mixed | Retrieves a dependency through the container. |
[SpecificFactory::class, 'orm_other'],
];
abstract protected createWithConfig ( Interop\Container\ContainerInterface $container, string $configKey ) : mixed | ||
$container | Interop\Container\ContainerInterface | |
$configKey | string | |
리턴 | mixed |
abstract protected getDefaultConfig ( string $configKey ) : array | ||
$configKey | string | |
리턴 | array |