class ProxyBuilder in Zircon Profile 8
Same name in this branch
- 8 core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php \Drupal\Core\ProxyBuilder\ProxyBuilder
- 8 core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php \Drupal\Component\ProxyBuilder\ProxyBuilder
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php \Drupal\Core\ProxyBuilder\ProxyBuilder
Extend the component proxy builder by using the DependencySerialziationTrait.
Hierarchy
- class \Drupal\Component\ProxyBuilder\ProxyBuilder
- class \Drupal\Core\ProxyBuilder\ProxyBuilder
Expanded class hierarchy of ProxyBuilder
2 files declare their use of ProxyBuilder
- generate-proxy-class.php in core/
scripts/ generate-proxy-class.php - ProxyBuilderTest.php in core/
tests/ Drupal/ Tests/ Core/ ProxyBuilder/ ProxyBuilderTest.php - Contains \Drupal\Tests\Core\ProxyBuilder\ProxyBuilderTest.
File
- core/
lib/ Drupal/ Core/ ProxyBuilder/ ProxyBuilder.php, line 15 - Contains \Drupal\Core\ProxyBuilder\ProxyBuilder.
Namespace
Drupal\Core\ProxyBuilderView source
class ProxyBuilder extends BaseProxyBuilder {
/**
* {@inheritdoc{
*/
protected function buildUseStatements() {
$output = parent::buildUseStatements();
$output .= 'use \\Drupal\\Core\\DependencyInjection\\DependencySerializationTrait;' . "\n\n";
return $output;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ProxyBuilder:: |
public | function | Builds a proxy class string. | |
ProxyBuilder:: |
protected | function | Builds the constructor used to inject the actual service ID. | |
ProxyBuilder:: |
protected | function | Generates the string for the method which loads the actual service. | |
ProxyBuilder:: |
protected | function | Generates the string representation of a single method: signature, body. | |
ProxyBuilder:: |
protected | function | Builds the body of a wrapped method. | |
ProxyBuilder:: |
protected | function | Builds a string for a single parameter of a method. | |
ProxyBuilder:: |
public static | function | Generates the used proxy class name from a given class name. | |
ProxyBuilder:: |
public static | function | Generates the used proxy namespace from a given class name. | |
ProxyBuilder:: |
protected | function |
{@inheritdoc{ Overrides ProxyBuilder:: |