DependencyInjection with @var uses everything as classname
this is my first issue.
If you use dependency injection in your controller und you use @var to describe the type of the variable the ClassInfoFactory uses everything after @var as class name
In function buildClassInfoFromClassname($className) the className isn't parsed or formatted.
I need to write the name of the property after the type
Reference for phpdoc @var
I need to write
/** * @var \BM\Simpleblog\Domain\Repository\BlogRepository $blogRepository * @inject */ protected $blogRepository;
but then "BM\Simpleblog\Domain\Repository\BlogRepository $blogRepository" is used as className.
$className = preg_replace("/(\s.*)/", "", $className);
would do the job, but I cannot say if it breaks tests or why there is no parsing the variable, maybe there are reasons I dont know.