Pantheon\Terminus\Commands\NewRelic\DisableCommand::disable PHP Метод

disable() публичный Метод

Disable New Relic for a site
public disable ( string $site_id )
$site_id string Name of the site to disable New Relic on
    public function disable($site_id)
    {
        $site = $this->getSite($site_id);
        $site->getNewRelic()->disable();
        $this->log()->notice('New Relic disabled. Converging bindings.');
        $workflow = $site->converge();
        // Wait for the workflow to complete.
        while (!$workflow->checkProgress()) {
            // @TODO: Add Symfony progress bar to indicate that something is happening.
        }
        $this->log()->notice($workflow->getMessage());
    }
DisableCommand