Airship\Engine\AutoPilot::loadInjectedRoutes PHP Method

loadInjectedRoutes() protected method

This loads all of the routes injected by the Gadgets into the current Cabin
protected loadInjectedRoutes ( ) : self
return self
    protected function loadInjectedRoutes() : self
    {
        $state = State::instance();
        if (empty($state->injectRoutes)) {
            return $this;
        }
        foreach ($state->injectRoutes as $path => $landing) {
            if (!\array_key_exists($path, $this->cabin['data']['routes'])) {
                $this->cabin['data']['routes'][$path] = $landing;
            }
        }
        return $this;
    }