src/Charcoal/App/AppConfig.php
public function setPublicPath($path)
    {
        if ($path === null) {
            $this->publicPath = null;
            return $this;
        }

        if (!is_string($path)) {
            throw new InvalidArgumentException(
                'The public path must be a string'
            );
        }

        $this->publicPath = rtrim(realpath($path), '\\/').DIRECTORY_SEPARATOR;
        return $this;
    }
public function setPublicPath($path)
    {
        if ($path === null) {
            $this->publicPath = null;
            return $this;
        }

        if (!is_string($path)) {
            throw new InvalidArgumentException(
                'The public path must be a string'
            );
        }

        $this->publicPath = rtrim(realpath($path), '\\/').DIRECTORY_SEPARATOR;
        return $this;
    }
public function setPublicPath ( $ path ) { if ( $ path === null ) { $ this -> publicPath = null ; return $ this ; } if ( ! is_string ( $ path ) ) { throw new InvalidArgumentException ( 'The public path must be a string' ) ; } $ this -> publicPath = rtrim ( realpath ( $ path ) , '\\/' ) . DIRECTORY_SEPARATOR ; return $ this ; }
Set the application's absolute path to the public web directory.

@param  string $path The path to the application's public directory.
@throws InvalidArgumentException If the argument is not a string.
@return self
Set the application s absolute path to the public web directory .