first commit

This commit is contained in:
2024-07-15 12:33:27 +02:00
commit ce50ae282b
22084 changed files with 2623791 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<?php
namespace DrupalFinder\Tests\Fixtures\Default;
use Composer\Script\Event;
use DrupalFinder\DrupalFinderComposerRuntime;
class TestAsComposerScript {
public static function dumpDrupalFinder(Event $event) {
$finder = new DrupalFinderComposerRuntime();
$event->getIO()->writeRaw(json_encode([
'getComposerRoot' => $finder->getComposerRoot(),
'getVendorDir' => $finder->getVendorDir(),
'getDrupalRoot' => $finder->getDrupalRoot(),
]));
}
}

View File

@@ -0,0 +1,35 @@
{
"repositories": {
"drupal-finder": {
"type": "path",
"url": "../../../"
}
},
"require": {
"composer/installers": "^2.2",
"drupal/core": "^10",
"webflo/drupal-finder": "*"
},
"config": {
"allow-plugins": {
"composer/installers": true
}
},
"extra": {
"installer-paths": {
"web/core": [
"type:drupal-core"
]
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"classmap": [
"TestAsComposerScript.php"
]
},
"scripts": {
"dump-drupal-finder": "\\DrupalFinder\\Tests\\Fixtures\\Default\\TestAsComposerScript::dumpDrupalFinder"
}
}

View File

@@ -0,0 +1,14 @@
<?php
use DrupalFinder\DrupalFinderComposerRuntime;
require __DIR__ . '/vendor/autoload.php';
$finder = new DrupalFinderComposerRuntime();
return json_encode([
'getComposerRoot' => $finder->getComposerRoot(),
'getVendorDir' => $finder->getVendorDir(),
'getDrupalRoot' => $finder->getDrupalRoot(),
]
);