[TASK] Add quotes to classname in exception 25/45225/2
authorGeorg Ringer <georg.ringer@gmail.com>
Sat, 12 Dec 2015 20:09:11 +0000 (21:09 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Sat, 12 Dec 2015 20:15:29 +0000 (21:15 +0100)
Add quotes to the class name in the exception to improve debugging.

Change-Id: If68cf9e5d7d7277b5172ed9a56083c95ca0c69ae
Resolves: #66510
Releases: master
Reviewed-on: https://review.typo3.org/45225
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/extbase/Classes/Object/Container/ClassInfoFactory.php

index 0230b67..15e29ae 100644 (file)
@@ -34,7 +34,7 @@ class ClassInfoFactory
         try {
             $reflectedClass = new \ReflectionClass($className);
         } catch (\Exception $e) {
-            throw new \TYPO3\CMS\Extbase\Object\Container\Exception\UnknownObjectException('Could not analyse class:' . $className . ' maybe not loaded or no autoloader?', 1289386765);
+            throw new \TYPO3\CMS\Extbase\Object\Container\Exception\UnknownObjectException('Could not analyse class:"' . $className . '" maybe not loaded or no autoloader?', 1289386765);
         }
         $constructorArguments = $this->getConstructorArguments($reflectedClass);
         $injectMethods = $this->getInjectMethods($reflectedClass);