public static ProxyBuilder::buildProxyClassName($class_name)
Generates the used proxy class name from a given class name.
string $class_name: The class name of the actual service.
string The class name of the proxy.
public static function buildProxyClassName($class_name) { $match = []; preg_match('/([a-zA-Z0-9_]+\\\\[a-zA-Z0-9_]+)\\\\(.+)/', $class_name, $match); $root_namespace = $match[1]; $rest_fqcn = $match[2]; $proxy_class_name = $root_namespace . '\\ProxyClass\\' . $rest_fqcn; return $proxy_class_name; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!ProxyBuilder!ProxyBuilder.php/function/ProxyBuilder::buildProxyClassName/8.1.x