class ProxyBuilder
Same name in this branch
- 10 core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php \Drupal\Component\ProxyBuilder\ProxyBuilder
Same name in other branches
- 9 core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php \Drupal\Core\ProxyBuilder\ProxyBuilder
- 9 core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php \Drupal\Component\ProxyBuilder\ProxyBuilder
- 8.9.x core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php \Drupal\Core\ProxyBuilder\ProxyBuilder
- 8.9.x core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php \Drupal\Component\ProxyBuilder\ProxyBuilder
- 11.x core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php \Drupal\Core\ProxyBuilder\ProxyBuilder
- 11.x core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php \Drupal\Component\ProxyBuilder\ProxyBuilder
Extend the component proxy builder by using the DependencySerializationTrait.
Hierarchy
- class \Drupal\Component\ProxyBuilder\ProxyBuilder
- class \Drupal\Core\ProxyBuilder\ProxyBuilder extends \Drupal\Component\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 - A script to generate proxy classes for lazy services.
- ProxyBuilderTest.php in core/
tests/ Drupal/ Tests/ Core/ ProxyBuilder/ ProxyBuilderTest.php
File
-
core/
lib/ Drupal/ Core/ ProxyBuilder/ ProxyBuilder.php, line 10
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
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
ProxyBuilder::build | public | function | Builds a proxy class string. | |
ProxyBuilder::buildConstructorMethod | protected | function | Builds the constructor used to inject the actual service ID. | |
ProxyBuilder::buildLazyLoadItselfMethod | protected | function | Generates the string for the method which loads the actual service. | |
ProxyBuilder::buildMethod | protected | function | Generates the string representation of a single method: signature, body. | |
ProxyBuilder::buildMethodBody | protected | function | Builds the body of a wrapped method. | |
ProxyBuilder::buildParameter | protected | function | Builds a string for a single parameter of a method. | |
ProxyBuilder::buildProxyClassName | public static | function | Generates the used proxy class name from a given class name. | |
ProxyBuilder::buildProxyNamespace | public static | function | Generates the used proxy namespace from a given class name. | |
ProxyBuilder::buildUseStatements | protected | function | Build the required use statements of the proxy class. | Overrides ProxyBuilder::buildUseStatements |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.