src/Assets.php
public function setDocRoot($docRoot)
    {
        if (empty($docRoot) || ! file_exists($docRoot) || ! is_dir($docRoot)) {
            throw new \InvalidArgumentException(
                'The document root set is not a valid directory.'
            );
        }
        $this->docRoot = rtrim($docRoot, '/');
    }
public function setDocRoot($docRoot)
    {
        if (empty($docRoot) || ! file_exists($docRoot) || ! is_dir($docRoot)) {
            throw new \InvalidArgumentException(
                'The document root set is not a valid directory.'
            );
        }
        $this->docRoot = rtrim($docRoot, '/');
    }
public function setDocRoot ( $ docRoot ) { if ( empty ( $ docRoot ) || ! file_exists ( $ docRoot ) || ! is_dir ( $ docRoot ) ) { throw new \ InvalidArgumentException ( 'The document root set is not a valid directory.' ) ; } $ this -> docRoot = rtrim ( $ docRoot , '/' ) ; }
set the document root

@param   string      Document Root
@throws  \InvalidArgumentException
set the document root