src/Charcoal/Admin/Config.php
public function setBasePath($path)
    {
        if (!is_string($path)) {
            throw new InvalidArgumentException(
                'Path must be a string'
            );
        }

        // Can not be empty
        if ($path == '') {
            throw new InvalidArgumentException(
                'Path can not be empty'
            );
        }

        $this->basePath = $path;
        return $this;
    }
public function setBasePath($path)
    {
        if (!is_string($path)) {
            throw new InvalidArgumentException(
                'Path must be a string'
            );
        }

        // Can not be empty
        if ($path == '') {
            throw new InvalidArgumentException(
                'Path can not be empty'
            );
        }

        $this->basePath = $path;
        return $this;
    }
public function setBasePath ( $ path ) { if ( ! is_string ( $ path ) ) { throw new InvalidArgumentException ( 'Path must be a string' ) ; } // Can not be empty if ( $ path == '' ) { throw new InvalidArgumentException ( 'Path can not be empty' ) ; } $ this -> basePath = $ path ; return $ this ; }
Set the admin module's route group.

@param  string $path The admin module base path.
@throws InvalidArgumentException If the route group is invalid.
@return self
Set the admin module s route group .