protected function checkPermissions()
    {
        $projectParentDirectory = dirname($this->projectDir);

        if (!is_writable($projectParentDirectory)) {
            throw new IOException(sprintf('Installer does not have enough permissions to write to the "%s" directory.', $projectParentDirectory));
        }

        return $this;
    }
protected function checkPermissions()
    {
        $projectParentDirectory = dirname($this->projectDir);

        if (!is_writable($projectParentDirectory)) {
            throw new IOException(sprintf('Installer does not have enough permissions to write to the "%s" directory.', $projectParentDirectory));
        }

        return $this;
    }
protected function checkPermissions ( ) { $ projectParentDirectory = dirname ( $ this -> projectDir ) ; if ( ! is_writable ( $ projectParentDirectory ) ) { throw new IOException ( sprintf ( 'Installer does not have enough permissions to write to the "%s" directory.' , $ projectParentDirectory ) ) ; } return $ this ; }
Checks if the installer has enough permissions to create the project.

@return $this

@throws IOException If the installer does not have enough permissions to write to the project parent directory
Checks if the installer has enough permissions to create the project .