Because it makes php refer to the root (global) namespace in this way.
You can also use DateTime and then jump without a slash:
namespace MyCompany\MyBundle\MyController;
use \DateTime;
$d = new DateTime();
Say you are working on your controller, which is under the namespace MyCompany \ MyBundle \ MyController . So what happens when you try to create a new DateTime instance?
, MyCompany\MyBundle\MyController\DateTime. " ...".
- php , .
:
http://php.net/manual/en/language.namespaces.global.php