Pantheon\Terminus\Commands\NewRelic\EnableCommand::enable PHP Метод

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

Enable New Relic for a site
public enable ( string $site_id )
$site_id string Name of the site to enable New Relic on
    public function enable($site_id)
    {
        $site = $this->getSite($site_id);
        $site->getNewRelic()->enable();
        $this->log()->notice('New Relic enabled. 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());
    }
EnableCommand