src/Leevel/Kernel/Console/Autoload.php
protected function classMap(): array
    {
        $result = [];

        $optimizeNamespaces = $this->optimizeNamespaces();
        $composerStaticClass = $this->composerStaticClass();
        $classMap = $composerStaticClass::$classMap;

        foreach ($classMap as $key => $value) {
            list($namespace) = explode('\\', $key);

            if (in_array($namespace, $optimizeNamespaces, true)) {
                $result[$key] = $value;
            }
        }

        return $result;
    }
protected function classMap(): array
    {
        $result = [];

        $optimizeNamespaces = $this->optimizeNamespaces();
        $composerStaticClass = $this->composerStaticClass();
        $classMap = $composerStaticClass::$classMap;

        foreach ($classMap as $key => $value) {
            list($namespace) = explode('\\', $key);

            if (in_array($namespace, $optimizeNamespaces, true)) {
                $result[$key] = $value;
            }
        }

        return $result;
    }
获取类映射.

@return array