src/CarteBlanche/App/Kernel.php
public function initConstantPath($cst, $path_ref, $must_exists = false, $must_be_writable = false)
    {
        if (defined($cst)) {
            $this->addPath($path_ref, constant($cst), $must_exists, $must_be_writable);
        } else {
            throw new ErrorException(
                sprintf('Missing constant path "%s"!', $cst)
            );
        }
        return $this;
    }
public function initConstantPath($cst, $path_ref, $must_exists = false, $must_be_writable = false)
    {
        if (defined($cst)) {
            $this->addPath($path_ref, constant($cst), $must_exists, $must_be_writable);
        } else {
            throw new ErrorException(
                sprintf('Missing constant path "%s"!', $cst)
            );
        }
        return $this;
    }
Initialize a path from a constant

@param string $cst               A constant name
@param string $path_ref          The path reference
@param bool $must_exists         Check if concerned path exists
@param bool $must_be_writable    Check if concerned path is writable
@return self

@throws ErrorException if the constant is not defined