Skip to content

Commit 501fe59

Browse files
committed
add the 'prosopo/views' package and setup namespace scoping
1 parent cd563c0 commit 501fe59

File tree

171 files changed

+4313
-18
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+4313
-18
lines changed

README.md

Lines changed: 11 additions & 6 deletions

for-devs.md

Lines changed: 3 additions & 3 deletions

for-maintainers.md

Lines changed: 17 additions & 1 deletion
File renamed without changes.

php-tools/origin-vendors/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
vendor
2+
composer.lock
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"require": {
3+
"prosopo/views": "^1.0"
4+
}
5+
}

php-tools/scoper/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
composer.lock
2+
vendor

php-tools/scoper/composer.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"require-dev": {
3+
"bamarni/composer-bin-plugin": "^1.8"
4+
},
5+
"config": {
6+
"allow-plugins": {
7+
"bamarni/composer-bin-plugin": true
8+
}
9+
},
10+
"scripts": {
11+
"scope": "./vendor/bin/php-scoper add-prefix --config scoper.inc.php"
12+
}
13+
}

php-tools/scoper/scoper.inc.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
// scoper.inc.php
6+
7+
use Isolated\Symfony\Component\Finder\Finder;
8+
9+
return [
10+
'prefix' => 'Io\\Prosopo\\Procaptcha\\Vendors', // string|null
11+
'php-version' => null, // string|null
12+
'output-dir' => '../../prosopo-procaptcha/prefixed-vendors', // string|null
13+
'finders' => [ // list<Finder>
14+
Finder::create()->files()->in('../origin-vendors/vendor')
15+
],
16+
'patchers' => [], // list<callable(string $filePath, string $prefix, string $contents): string>
17+
18+
'exclude-files' => [], // list<string>
19+
'exclude-namespaces' => [], // list<string|regex>
20+
'exclude-constants' => [], // list<string|regex>
21+
'exclude-classes' => [], // list<string|regex>
22+
'exclude-functions' => [], // list<string|regex>
23+
];
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
vendor
2+
composer.lock
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"require-dev": {
3+
"humbug/php-scoper": "^0.18.15"
4+
}
5+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
namespace Io\Prosopo\Procaptcha\Vendors;
4+
5+
// autoload.php @generated by Composer
6+
if (\PHP_VERSION_ID < 50600) {
7+
if (!\headers_sent()) {
8+
\header('HTTP/1.1 500 Internal Server Error');
9+
}
10+
$err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running ' . \PHP_VERSION . ', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.' . \PHP_EOL;
11+
if (!\ini_get('display_errors')) {
12+
if (\PHP_SAPI === 'cli' || \PHP_SAPI === 'phpdbg') {
13+
\fwrite(\STDERR, $err);
14+
} elseif (!\headers_sent()) {
15+
echo $err;
16+
}
17+
}
18+
\trigger_error($err, \E_USER_ERROR);
19+
}
20+
require_once __DIR__ . '/composer/autoload_real.php';
21+
return ComposerAutoloaderInit043dd16cfbc09f98741d61dc32af3bc2::getLoader();

0 commit comments

Comments
 (0)