public function locateAutoloadFile()

in src/ProjectContext.php [35:48]


    public function locateAutoloadFile(): ?string
    {
        if (file_exists($vendored = __DIR__ . '/../../../autoload.php')) {
            // when running from vendor/google/cloud-functions-framework
            return $vendored;
        }

        if (file_exists($cloned = __DIR__ . '/../vendor/autoload.php')) {
            // when running from git clone.
            return $cloned;
        }

        return null;
    }