$autoload)); $grav->setup('tests'); $grav['config']->init(); // Find all plugins in Grav installation and autoload their classes. /** @var UniformResourceLocator $locator */ $locator = Grav::instance()['locator']; $iterator = $locator->getIterator('plugins://'); foreach($iterator as $directory) { if (!$directory->isDir()) { continue; } $autoloader = $directory->getPathname() . '/vendor/autoload.php'; if (file_exists($autoloader)) { require $autoloader; } } define('GANTRY_DEBUGGER', true); define('GANTRY5_DEBUG', true); define('GANTRY5_PLATFORM', 'grav'); define('GANTRY5_ROOT', rtrim(ROOT_DIR, '/')); define('GANTRY5_VERSION', '@version@'); define('GANTRY5_VERSION_DATE', '@versiondate@'); define('GANTRYADMIN_PATH', '');