You are here

class ProxyBuilder in Drupal 10

Same name in this branch
  1. 10 core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php \Drupal\Core\ProxyBuilder\ProxyBuilder
  2. 10 core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php \Drupal\Component\ProxyBuilder\ProxyBuilder
Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php \Drupal\Core\ProxyBuilder\ProxyBuilder
  2. 9 core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php \Drupal\Core\ProxyBuilder\ProxyBuilder

Extend the component proxy builder by using the DependencySerializationTrait.

Hierarchy

  • 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 command line application to generate proxy classes.
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 10

Namespace

Drupal\Core\ProxyBuilder
View source
class ProxyBuilder extends BaseProxyBuilder {

  /**
   * {@inheritdoc}
   */
  protected function buildUseStatements() {
    $output = parent::buildUseStatements();
    $output .= 'use \\Drupal\\Core\\DependencyInjection\\DependencySerializationTrait;' . "\n\n";
    return $output;
  }

}

Members