From fb15cca9cac3c53f574f793ab697fa821e8d0866 Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Fri, 24 Jul 2015 16:48:37 +0100
Subject: [PATCH] Issue #2536644 by tim.plunkett: generate-proxy-class.php
 should generate the same file regardless of a missing leading slash

---
 core/lib/Drupal/Core/Command/GenerateProxyClassCommand.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/lib/Drupal/Core/Command/GenerateProxyClassCommand.php b/core/lib/Drupal/Core/Command/GenerateProxyClassCommand.php
index 4fbe3e30f037..288deaa4861c 100644
--- a/core/lib/Drupal/Core/Command/GenerateProxyClassCommand.php
+++ b/core/lib/Drupal/Core/Command/GenerateProxyClassCommand.php
@@ -56,7 +56,7 @@ protected function configure() {
    * {@inheritdoc}
    */
   protected function execute(InputInterface $input, OutputInterface $output) {
-    $class_name = $input->getArgument('class_name');
+    $class_name = ltrim($input->getArgument('class_name'), '\\');
     $namespace_root = $input->getArgument('namespace_root_path');
 
     $match = [];
@@ -76,7 +76,7 @@ protected function execute(InputInterface $input, OutputInterface $output) {
 
 /**
  * @file
- * Contains {{ proxy_class_name }}.
+ * Contains \{{ proxy_class_name }}.
  */
 
 /**
-- 
GitLab