addClassMap($config->getClassMap()); $scanner = new Scanner($config, $handler); $composerLoader->addClassMap( $scanner->scan($composerLoader->getClassMap(), $proxyFileDirPath) ); // Initialize Lazy Loader. This will prepend LazyLoader to the top of autoload queue. LazyLoader::bootstrap($configDir); } protected static function loadDotenv(): void { $repository = RepositoryBuilder::createWithNoAdapters() ->addAdapter(Adapter\PutenvAdapter::class) ->immutable() ->make(); Dotenv::create($repository, [BASE_PATH])->load(); } }