ProxyBuilder.php

Same filename in this branch
  1. 8.9.x core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php
Same filename in other branches
  1. 9 core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php
  2. 9 core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php
  3. 10 core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php
  4. 10 core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php
  5. 11.x core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php
  6. 11.x core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php

Namespace

Drupal\Core\ProxyBuilder

File

core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php

View source
<?php

namespace Drupal\Core\ProxyBuilder;

use Drupal\Component\ProxyBuilder\ProxyBuilder as BaseProxyBuilder;

/**
 * Extend the component proxy builder by using the DependencySerializationTrait.
 */
class ProxyBuilder extends BaseProxyBuilder {
    
    /**
     * {@inheritdoc}
     */
    protected function buildUseStatements() {
        $output = parent::buildUseStatements();
        $output .= 'use \\Drupal\\Core\\DependencyInjection\\DependencySerializationTrait;' . "\n\n";
        return $output;
    }

}

Classes

Title Deprecated Summary
ProxyBuilder Extend the component proxy builder by using the DependencySerializationTrait.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.