Airship\Engine\Continuum\Installer::getChannel PHP Method

getChannel() protected method

Get the channels (cache across all instances of Installer)
protected getChannel ( string $name ) : Channel
$name string
return Channel
    protected function getChannel(string $name) : Channel
    {
        if (empty(self::$channels)) {
            $config = \Airship\loadJSON(ROOT . '/config/channels.json');
            foreach ($config as $chName => $chConfig) {
                self::$channels[$chName] = new Channel($this, $chName, $chConfig);
            }
        }
        if (isset(self::$channels[$name])) {
            return self::$channels[$name];
        }
        throw new NoAPIResponse(\trk('errors.hail.no_channel_configured', ''));
    }