Initial Drupal 11 with DDEV setup

This commit is contained in:
gluebox
2025-10-08 11:39:17 -04:00
commit 89ef74b305
25344 changed files with 2599172 additions and 0 deletions

View File

@ -0,0 +1,40 @@
<?php
set_time_limit(0);
$repo_root = __DIR__ . '/..';
$possible_autoloader_locations = [
$repo_root . '/../../autoload.php',
$repo_root . '/vendor/autoload.php',
];
foreach ($possible_autoloader_locations as $location) {
if (file_exists($location)) {
$autoloader = require_once $location;
break;
}
}
if (empty($autoloader)) {
echo 'Unable to autoload classes for yml-cli.' . PHP_EOL;
exit(1);
}
use Grasmash\YamlCli\Command\GetTypeCommand;
use Grasmash\YamlCli\Command\GetValueCommand;
use Grasmash\YamlCli\Command\LintCommand;
use Grasmash\YamlCli\Command\UnsetKeyCommand;
use Grasmash\YamlCli\Command\UpdateKeyCommand;
use Grasmash\YamlCli\Command\UpdateValueCommand;
use Symfony\Component\Console\Application;
$application = new Application('yaml-cli', '@package_version@');
$application->add(new GetValueCommand());
$application->add(new GetTypeCommand());
$application->add(new LintCommand());
$application->add(new UnsetKeyCommand());
$application->add(new UpdateKeyCommand());
$application->add(new UpdateValueCommand());
$application->run();

3
vendor/grasmash/yaml-cli/bin/yaml-cli vendored Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env php
<?php
require __DIR__ . '/application.php';