메소드 |
설명 |
|
addAlias ( $alias, $service ) |
|
|
addDefinition ( $name, ServiceDefinition $definition = NULL ) : ServiceDefinition |
Adds new service definition. |
|
addDependency ( $dep ) : self |
Adds item to the list of dependencies. |
|
addExcludedClasses ( array $classes ) : self |
|
|
autowireArguments ( $class, $method, array $arguments ) : array |
Creates a list of arguments using autowiring. |
|
complete ( ) : void |
|
|
completeStatement ( Statement $statement ) : Statement |
|
|
expand ( $value ) : mixed |
Expands %placeholders% in strings. |
|
findByTag ( $tag ) : array |
Gets the service objects of the specified tag. |
|
findByType ( $class ) : ServiceDefinition[] |
Gets the service names and definitions of the specified type. |
|
formatPhp ( $statement, $args ) |
|
|
formatStatement ( Statement $statement ) |
|
|
generateClasses ( $className = 'Container', $parentName = NULL ) |
|
|
getAliases ( ) : array |
Gets all service aliases. |
|
getByType ( $class ) : string | null |
Resolves service name by type. |
|
getClassList ( ) |
|
|
getClassName ( ) |
|
|
getDefinition ( $name ) : ServiceDefinition |
Gets the service definition. |
|
getDefinitions ( ) : ServiceDefinition[] |
Gets all service definitions. |
|
getDependencies ( ) : array |
Returns the list of dependencies. |
|
getServiceName ( $arg ) : string |
Converts @service or @\Class -> service name and checks its existence. |
|
hasDefinition ( $name ) : boolean |
Does the service definition or alias exist? |
|
literal ( $phpCode ) : Nette\PhpGenerator\PhpLiteral |
|
|
normalizeEntity ( $entity ) |
|
|
prepareClassList ( ) : array |
Generates $dependencies, $classes and normalizes class names. |
|
removeAlias ( $alias ) : void |
Removes the specified alias. |
|
removeDefinition ( $name ) : void |
Removes the specified service definition. |
|
setClassName ( $name ) |
|
|