create(AcfViewData::class); $acfCardData = $groupCreator->create(AcfCardData::class); $item = $groupCreator->create(Item::class); $options = new Options(); $settings = new Settings($options); // load right here, as used everywhere $settings->load(); $acf = new Acf(); $html = new Html(); $viewMarkup = new ViewMarkup($html); $queryBuilder = new QueryBuilder(); $cardMarkup = new CardMarkup($queryBuilder); $cache = new Cache($acfViewData, $acfCardData); $plugin = new Plugin($acf, $viewMarkup, $cardMarkup, $queryBuilder, $options, $cache); $acfViews = new AcfViews($html, $viewMarkup, $plugin, $cache); $acfCards = new AcfCards($html, $plugin, $queryBuilder, $cardMarkup, $cache); $demoImport = new DemoImport($acfViews, $settings, $item, $acfCards, $cache); $dashboard = new Dashboard($plugin, $html, $acf, $options, $demoImport); $acfPro = new AcfPro($plugin); $upgrades = new Upgrades($plugin, $settings, $cache, $acfViews); $activeInstallations = new ActiveInstallations($plugin, $settings, $options); $acfGroupsLoader = new GroupsLoader(); $acfGroupsLoader->signUpGroups('org\wplake\acf_views\AcfGroups', __DIR__ . '/src/AcfGroups'); $plugin->setHooks(); $acfViews->setHooks(); $acf->setHooks(); $dashboard->setHooks(); $demoImport->setHooks(); $acfCards->setHooks(); $acfPro->setHooks(); $upgrades->setHooks(); $activeInstallations->setHooks(); }; $acfViews();