Actually, we shouldn't use either. Resources should always be located using KernelInterface::locateResource.

See https://insight.sensiolabs.com/what-we-analyse/symfony.dependency_injection.use_dir_file_constant