Skip to content

Commit

Permalink
Merge pull request #27 from mauricerenck/develop
Browse files Browse the repository at this point in the history
better non-composer support
  • Loading branch information
mauricerenck authored Jul 5, 2019
2 parents c17f26b + 57ddd73 commit b0194e2
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 1,171 deletions.
17 changes: 4 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/.history
/node_modules

# files of Composer dependencies that are not needed for the plugin
/vendor/**/.*
/vendor/**/*.json
Expand All @@ -17,16 +20,4 @@
/vendor/**/test/*
/vendor/**/tests/*
/vendor/**/php4/*
/vendor/getkirby/composer-installer
/vendor/doctrine
/vendor/myclabs
/vendor/phar-io
/vendor/phpdocumentor
/vendor/phpspec
/vendor/phpunit
/vendor/sebastian
/vendor/symfony
/vendor/theseer
/vendor/webmozart
/.history
/node_modules
/vendor/getkirby/composer-installer
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mauricerenck/podcaster",
"version": "1.1.2",
"version": "1.1.3",
"description": "A podcast plugin for Kirby 3",
"type": "kirby-plugin",
"license": "MIT",
Expand All @@ -27,5 +27,8 @@
},
"require-dev": {
"phpunit/phpunit": "^7.2"
},
"config": {
"optimize-autoloader": true
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "podcaster",
"version": "1.1.2",
"version": "1.1.3",
"description": "Theme",
"main": "index.js",
"author": "Maurice Renck",
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInitf9e064d36fc9d27537c831b3675101ca::getLoader();
return ComposerAutoloaderInit660325cad110ed14730f0fd0071c5b55::getLoader();
1 change: 0 additions & 1 deletion vendor/bin/phpunit

This file was deleted.

547 changes: 4 additions & 543 deletions vendor/composer/autoload_classmap.php

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions vendor/composer/autoload_files.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
$baseDir = dirname($vendorDir);

return array(
'320cde22f66dd4f5d3fd621d3e88b98f' => $vendorDir . '/symfony/polyfill-ctype/bootstrap.php',
'6124b4c8570aa390c21fafd04a26c69f' => $vendorDir . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php',
'8df3dfd1f38b5f54e639d8aee9e2bd5b' => $baseDir . '/utils/PodcasterUtils.php',
'aa1a9ddc5c71d010b159c1768f7031e2' => $baseDir . '/utils/PodcasterAudioUtils.php',
'1a1828adf062a2860974d695d05734cf' => $baseDir . '/utils/PodcasterStats.php',
Expand Down
6 changes: 0 additions & 6 deletions vendor/composer/autoload_psr4.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,5 @@
$baseDir = dirname($vendorDir);

return array(
'phpDocumentor\\Reflection\\' => array($vendorDir . '/phpdocumentor/reflection-common/src', $vendorDir . '/phpdocumentor/reflection-docblock/src', $vendorDir . '/phpdocumentor/type-resolver/src'),
'Webmozart\\Assert\\' => array($vendorDir . '/webmozart/assert/src'),
'Symfony\\Polyfill\\Ctype\\' => array($vendorDir . '/symfony/polyfill-ctype'),
'Prophecy\\' => array($vendorDir . '/phpspec/prophecy/src/Prophecy'),
'Kirby\\' => array($vendorDir . '/getkirby/composer-installer/src'),
'Doctrine\\Instantiator\\' => array($vendorDir . '/doctrine/instantiator/src/Doctrine/Instantiator'),
'DeepCopy\\' => array($vendorDir . '/myclabs/deep-copy/src/DeepCopy'),
);
14 changes: 7 additions & 7 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInitf9e064d36fc9d27537c831b3675101ca
class ComposerAutoloaderInit660325cad110ed14730f0fd0071c5b55
{
private static $loader;

Expand All @@ -19,15 +19,15 @@ public static function getLoader()
return self::$loader;
}

spl_autoload_register(array('ComposerAutoloaderInitf9e064d36fc9d27537c831b3675101ca', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit660325cad110ed14730f0fd0071c5b55', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInitf9e064d36fc9d27537c831b3675101ca', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit660325cad110ed14730f0fd0071c5b55', 'loadClassLoader'));

$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) {
require_once __DIR__ . '/autoload_static.php';

call_user_func(\Composer\Autoload\ComposerStaticInitf9e064d36fc9d27537c831b3675101ca::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit660325cad110ed14730f0fd0071c5b55::getInitializer($loader));
} else {
$map = require __DIR__ . '/autoload_namespaces.php';
foreach ($map as $namespace => $path) {
Expand All @@ -48,19 +48,19 @@ public static function getLoader()
$loader->register(true);

if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInitf9e064d36fc9d27537c831b3675101ca::$files;
$includeFiles = Composer\Autoload\ComposerStaticInit660325cad110ed14730f0fd0071c5b55::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequiref9e064d36fc9d27537c831b3675101ca($fileIdentifier, $file);
composerRequire660325cad110ed14730f0fd0071c5b55($fileIdentifier, $file);
}

return $loader;
}
}

function composerRequiref9e064d36fc9d27537c831b3675101ca($fileIdentifier, $file)
function composerRequire660325cad110ed14730f0fd0071c5b55($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
require $file;
Expand Down
Loading

0 comments on commit b0194e2

Please sign in to comment.