Метод | Описание | |
---|---|---|
__construct ( Puli\Manager\Api\Context\ProjectContext $context, Puli\Manager\Api\Factory\Generator\GeneratorRegistry $generatorRegistry, Puli\Manager\Php\ClassWriter $classWriter, |
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 ( |
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. |
public __construct ( Puli\Manager\Api\Context\ProjectContext $context, Puli\Manager\Api\Factory\Generator\GeneratorRegistry $generatorRegistry, Puli\Manager\Php\ClassWriter $classWriter, |
||
$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 | The loaded modules. | |
$servers | Puli\Manager\Api\Server\ServerCollection | The configured servers. |
public addCreateUrlGeneratorMethod ( Puli\Manager\Api\Php\Clazz $class ) | ||
$class | Puli\Manager\Api\Php\Clazz | The factory class model. |
public addGetModuleOrderMethod ( Puli\Manager\Api\Php\Clazz $class ) | ||
$class | Puli\Manager\Api\Php\Clazz | The factory class model. |
public autoGenerateFactoryClass ( $path = null, $className = null ) |
public generateFactoryClass ( $path = null, $className = null ) |
public refreshFactoryClass ( $path = null, $className = null ) |
public setModules ( |
||
$modules | The loaded modules. |
public setServers ( Puli\Manager\Api\Server\ServerCollection $servers ) | ||
$servers | Puli\Manager\Api\Server\ServerCollection | The configured servers. |