Blackfire\Player\Extension\BlackfireExtension::registerBlackfire PHP Метод

registerBlackfire() приватный Метод

private registerBlackfire ( $title )
    private function registerBlackfire($title)
    {
        if (!($env = $this->blackfire->getConfiguration()->getEnv())) {
            throw new LogicException('You must set the environment you want to work with on the Blackfire client configuration.');
        }
        $options = ['title' => $title, 'trigger_name' => 'Blackfire Player'];
        if (isset($_SERVER['BLACKFIRE_EXTERNAL_ID'])) {
            $options['external_id'] = $_SERVER['BLACKFIRE_EXTERNAL_ID'];
        }
        if (isset($_SERVER['BLACKFIRE_EXTERNAL_PARENT_ID'])) {
            $options['external_parent_id'] = $_SERVER['BLACKFIRE_EXTERNAL_PARENT_ID'];
        }
        return $this->blackfire->createBuild($env, $options);
    }