Liip\RMT\Command\InitCommand::buildPaths PHP Method

buildPaths() protected method

protected buildPaths ( $configPath = null )
    protected function buildPaths($configPath = null)
    {
        $projectDir = $this->getApplication()->getProjectRootDir();
        $this->executablePath = $projectDir . '/RMT';
        $this->configPath = $configPath == null ? $projectDir . '/.rmt.yml' : $configPath;
        $this->commandPath = realpath(__DIR__ . '/../../../../command.php');
        // If possible try to generate a relative link for the command if RMT is installed inside the project
        if (strpos($this->commandPath, $projectDir) === 0) {
            $this->commandPath = substr($this->commandPath, strlen($projectDir) + 1);
        }
    }