PHP 클래스 Puli\Manager\Factory\FactoryManagerImpl

부터: 1.0
저자: Bernhard Schussek ([email protected])
상속: implements Puli\Manager\Api\Factory\FactoryManager
파일 보기 프로젝트 열기: puli/manager 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Puli\Manager\Api\Context\ProjectContext $context, Puli\Manager\Api\Factory\Generator\GeneratorRegistry $generatorRegistry, Puli\Manager\Php\ClassWriter $classWriter, ModuleList $modules = null, Puli\Manager\Api\Server\ServerCollection $servers = null ) Creates a new factory generator.
addCreateUrlGeneratorMethod ( Puli\Manager\Api\Php\Clazz $class ) Adds the createUrlGenerator() method.
addGetModuleOrderMethod ( Puli\Manager\Api\Php\Clazz $class ) Adds the getModuleOrder() method.
autoGenerateFactoryClass ( $path = null, $className = null )
createFactory ( $path = null, $className = null )
generateFactoryClass ( $path = null, $className = null )
isFactoryClassAutoGenerated ( )
refreshFactoryClass ( $path = null, $className = null )
setModules ( ModuleList $modules ) Sets the modules included in the getModuleOrder() method.
setServers ( Puli\Manager\Api\Server\ServerCollection $servers ) Sets the servers included in the createUrlGenerator() method.

비공개 메소드들

메소드 설명
addCreateDiscoveryMethod ( Puli\Manager\Api\Php\Clazz $class ) Adds the createDiscovery() method.
addCreateRepositoryMethod ( Puli\Manager\Api\Php\Clazz $class ) Adds the createRepository() method.
camelize ( string $string ) : string Camelizes a string.
camelizeKeys ( array $array ) : array Recursively camelizes the keys of an array.

메소드 상세

__construct() 공개 메소드

Creates a new factory generator.
public __construct ( Puli\Manager\Api\Context\ProjectContext $context, Puli\Manager\Api\Factory\Generator\GeneratorRegistry $generatorRegistry, Puli\Manager\Php\ClassWriter $classWriter, ModuleList $modules = null, Puli\Manager\Api\Server\ServerCollection $servers = null )
$context Puli\Manager\Api\Context\ProjectContext The project context.
$generatorRegistry Puli\Manager\Api\Factory\Generator\GeneratorRegistry The registry providing the generators for the services returned by the factory.
$classWriter Puli\Manager\Php\ClassWriter The writer that writes the class to a file.
$modules Puli\Manager\Api\Module\ModuleList The loaded modules.
$servers Puli\Manager\Api\Server\ServerCollection The configured servers.

addCreateUrlGeneratorMethod() 공개 메소드

Adds the createUrlGenerator() method.
public addCreateUrlGeneratorMethod ( Puli\Manager\Api\Php\Clazz $class )
$class Puli\Manager\Api\Php\Clazz The factory class model.

addGetModuleOrderMethod() 공개 메소드

Adds the getModuleOrder() method.
public addGetModuleOrderMethod ( Puli\Manager\Api\Php\Clazz $class )
$class Puli\Manager\Api\Php\Clazz The factory class model.

autoGenerateFactoryClass() 공개 메소드

public autoGenerateFactoryClass ( $path = null, $className = null )

createFactory() 공개 메소드

public createFactory ( $path = null, $className = null )

generateFactoryClass() 공개 메소드

public generateFactoryClass ( $path = null, $className = null )

isFactoryClassAutoGenerated() 공개 메소드

refreshFactoryClass() 공개 메소드

public refreshFactoryClass ( $path = null, $className = null )

setModules() 공개 메소드

Sets the modules included in the getModuleOrder() method.
public setModules ( ModuleList $modules )
$modules Puli\Manager\Api\Module\ModuleList The loaded modules.

setServers() 공개 메소드

Sets the servers included in the createUrlGenerator() method.
public setServers ( Puli\Manager\Api\Server\ServerCollection $servers )
$servers Puli\Manager\Api\Server\ServerCollection The configured servers.