You are here

function autoload_path_to_namespace in Autoload 7

Transform file system path to namespace path.

Parameters

string $path: Input path.

Return value

string Processed string.

2 calls to autoload_path_to_namespace()
autoload_seek_classes in ./autoload.module
Seek classes by base of a namespace.
AuxiliaryTest::test in src/Tests/Unit/AuxiliaryTest.php
Unit tests for auxiliary functions.

File

./autoload.module, line 240

Code

function autoload_path_to_namespace($path) {
  return str_replace('/', '\\', $path);
}