Pantheon\Terminus\Commands\Remote\SSHBaseCommand::validateFramework PHP Method

validateFramework() protected method

Validates the framework being used
protected validateFramework ( string $framework )
$framework string
    protected function validateFramework($framework)
    {
        if (!in_array($framework, $this->valid_frameworks)) {
            throw new TerminusException("The {command} command is only available on sites running {frameworks}. " . "The framework for this site is {framework}.", ['command' => $this->command, 'frameworks' => implode(", ", $this->valid_frameworks), 'framework' => $framework]);
        }
    }