<?php // In *.api.php files a fully qualified namespace reference is allowed. $x = new \Drupal\my_module\Example\MyUrlHelper();