zap/app/SiteConfiguration.php
2025-08-19 18:59:43 -04:00

21 lines
436 B
PHP

<?php
namespace App;
use Symfony\Component\Yaml\Yaml;
class SiteConfiguration
{
public static function getConfig(): array
{
$configPath = base_path('zap.yml');
$config = Yaml::parseFile($configPath);
}
public static function collections(): array
{
$config = self::getConfig();
$collections = collect($config['collections'])->keys()->toArray();
return $collections;
}
}