mirror of
https://codeberg.org/artfulrobot/contactcats.git
synced 2025-06-25 21:28:06 +02:00
checkin (broken)
This commit is contained in:
parent
a01abba787
commit
06fec5daf7
21 changed files with 2025 additions and 376 deletions
28
mixin/lib/civimix-schema@5.80.2/pathload.main.php
Normal file
28
mixin/lib/civimix-schema@5.80.2/pathload.main.php
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
namespace CiviMix\Schema;
|
||||
|
||||
\pathload()->activatePackage('civimix-schema@5', __DIR__, [
|
||||
'reloadable' => TRUE,
|
||||
// The civimix-schema library specifically supports installation processes. From a
|
||||
// bootstrap/service-availability POV, this is a rough environment which leads to
|
||||
// the "Multi-Activation Issue" and "Multi-Download Issue". To adapt to them,
|
||||
// civimix-schema follows "Reloadable Library" patterns.
|
||||
// More information: https://github.com/totten/pathload-poc/blob/master/doc/issues.md
|
||||
]);
|
||||
|
||||
// When reloading, we make newer instance of the Facade object.
|
||||
$GLOBALS['CiviMixSchema'] = require __DIR__ . '/src/CiviMixSchema.php';
|
||||
|
||||
if (!interface_exists(__NAMESPACE__ . '\SchemaHelperInterface')) {
|
||||
require __DIR__ . '/src/SchemaHelperInterface.php';
|
||||
}
|
||||
|
||||
// \CiviMix\Schema\loadClass() is a facade. The facade should remain identical across versions.
|
||||
if (!function_exists(__NAMESPACE__ . '\loadClass')) {
|
||||
|
||||
function loadClass(string $class) {
|
||||
return $GLOBALS['CiviMixSchema']->loadClass($class);
|
||||
}
|
||||
|
||||
spl_autoload_register(__NAMESPACE__ . '\loadClass');
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue