src/CarteBlanche/App/Kernel.php
public function getAbsolutePath($path)
    {
        $root = $this->getPath('root_path');
        if (empty($root)) {
            return null;
        }
        if (empty($path)) {
            return $root;
        }
        if (0===substr_count($path, $root)) {
            $path = DirectoryHelper::slashDirname($root).$path;
        }
        return file_exists($path) ? DirectoryHelper::slashDirname(realpath($path)) : null;
    }
public function getAbsolutePath($path)
    {
        $root = $this->getPath('root_path');
        if (empty($root)) {
            return null;
        }
        if (empty($path)) {
            return $root;
        }
        if (0===substr_count($path, $root)) {
            $path = DirectoryHelper::slashDirname($root).$path;
        }
        return file_exists($path) ? DirectoryHelper::slashDirname(realpath($path)) : null;
    }
Build an app absolute path

@param   string    $path       The relative path to build
@return  string|null