src/Extension/MessageExtension.php
public function load($extensions)
    {
        if (!is_array($extensions)) {
            throw new ExtensionException('extensions must pass an array.');
        }

        foreach ($extensions as $extension) {
            $this->addServiceExtension($extension);
        }

        $this->serviceExtensions = array_unique($this->serviceExtensions);
    }
public function load($extensions)
    {
        if (!is_array($extensions)) {
            throw new ExtensionException('extensions must pass an array.');
        }

        foreach ($extensions as $extension) {
            $this->addServiceExtension($extension);
        }

        $this->serviceExtensions = array_unique($this->serviceExtensions);
    }
读取业务消息拓展.

@param $extensions

@throws ExtensionException