phug-php/phug

View on GitHub
src/Phug/Compiler/Compiler/NormalizerInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

namespace Phug\Compiler;

/**
 * Interface NormalizerInterface.
 *
 * An interface for paths normalization.
 *
 * Locators implementing this interface can customize the path normalization on
 * resolving file paths.
 */
interface NormalizerInterface
{
    /**
     * Normalize the string of a relative or absolute path.
     *
     * @param string $path the path to normalize.
     *
     * @return string
     */
    public function normalize($path);
}