Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationLatte
      • ApplicationTracy
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsLatte
      • Framework
      • HttpTracy
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Templating
    • Utils
  • NetteModule
  • none
  • Tracy

Classes

  • Compiler
  • CompilerExtension
  • Container
  • ContainerBuilder
  • ContainerFactory
  • Helpers
  • ServiceDefinition
  • Statement

Exceptions

  • MissingServiceException
  • ServiceCreationException
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class CompilerExtension

Configurator compiling extension.

Nette\Object
Extended by Nette\DI\CompilerExtension

Direct known subclasses

Nette\Bridges\DatabaseDI\DatabaseExtension, Nette\Bridges\Framework\NetteExtension, Nette\DI\Extensions\ConstantsExtension, Nette\DI\Extensions\ExtensionsExtension, Nette\DI\Extensions\PhpExtension
Abstract
Namespace: Nette\DI
Author: David Grudl
Located at DI/CompilerExtension.php
Methods summary
public
# setCompiler( Nette\DI\Compiler $compiler, $name )
public array
# getConfig( array $defaults = NULL )

Returns extension configuration.

Returns extension configuration.

Parameters

$defaults
array
default unexpanded values.

Returns

array
public Nette\DI\ContainerBuilder
# getContainerBuilder( )

Returns

Nette\DI\ContainerBuilder
public array
# loadFromFile( string $file )

Reads configuration from file.

Reads configuration from file.

Parameters

$file
string
file name

Returns

array
public string
# prefix( string $id )

Prepend extension name to identifier or service name.

Prepend extension name to identifier or service name.

Parameters

$id
string

Returns

string
public
# loadConfiguration( )

Processes configuration data. Intended to be overridden by descendant.

Processes configuration data. Intended to be overridden by descendant.

public
# beforeCompile( )

Adjusts DI container before is compiled to PHP class. Intended to be overridden by descendant.

Adjusts DI container before is compiled to PHP class. Intended to be overridden by descendant.

public
# afterCompile( Nette\PhpGenerator\ClassType $class )

Adjusts DI container compiled to PHP class. Intended to be overridden by descendant.

Adjusts DI container compiled to PHP class. Intended to be overridden by descendant.

Methods inherited from Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Properties summary
protected Nette\DI\Compiler $compiler
#
protected string $name
#
Magic properties summary
public read-only array $config
#
public read-only Nette\DI\ContainerBuilder $containerBuilder
#
Magic properties inherited from Nette\Object
$reflection
Nette 2.2 API documentation generated by ApiGen 2.8.0