It seems there is always an ended `/` but the code is a little bit obscur for me:

```php
$classTemplate->relativeRootUrl = str_repeat('../', substr_count($className, '\\'));
```