Commit 3b742fd8 authored by webchick's avatar webchick

Issue #2380389 by webflo, Mile23, davidwbarratt, timmillwood, hussainweb,...

Issue #2380389 by webflo, Mile23, davidwbarratt, timmillwood, hussainweb, tstoeckler, bojanz, yched, MKorostoff, alexpott, webchick: Use a single vendor directory in the root
parent 5355f8cc

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

core/assets/vendor/**/* core/assets/vendor/**/*
core/modules/locale/tests/locale_test.js core/modules/locale/tests/locale_test.js
core/vendor/**/* vendor/**/*
sites/**/files/**/* sites/**/files/**/*
libraries/**/* libraries/**/*
sites/**/libraries/**/* sites/**/libraries/**/*
......
...@@ -51,3 +51,4 @@ ...@@ -51,3 +51,4 @@
*.png -text diff *.png -text diff
*.phar -text diff *.phar -text diff
*.exe -text diff *.exe -text diff
*.ttf -text diff
...@@ -4,11 +4,6 @@ ...@@ -4,11 +4,6 @@
* @file * @file
* Includes the autoloader created by Composer. * Includes the autoloader created by Composer.
* *
* This file can be edited to change the autoloader if you are managing a
* project's dependencies using Composer. If Drupal code requires the
* autoloader, it should always be loaded using this file so that projects
* using Composer continue to work.
*
* @see composer.json * @see composer.json
* @see index.php * @see index.php
* @see core/install.php * @see core/install.php
...@@ -16,4 +11,4 @@ ...@@ -16,4 +11,4 @@
* @see core/modules/statistics/statistics.php * @see core/modules/statistics/statistics.php
*/ */
return require __DIR__ . '/core/vendor/autoload.php'; return require __DIR__ . '/vendor/autoload.php';
...@@ -5,6 +5,9 @@ ...@@ -5,6 +5,9 @@
"license": "GPL-2.0+", "license": "GPL-2.0+",
"require": { "require": {
"composer/installers": "^1.0.21", "composer/installers": "^1.0.21",
"wikimedia/composer-merge-plugin": "^1.3.0"
},
"replace": {
"drupal/core": "~8.0" "drupal/core": "~8.0"
}, },
"minimum-stability": "dev", "minimum-stability": "dev",
...@@ -15,8 +18,25 @@ ...@@ -15,8 +18,25 @@
}, },
"extra": { "extra": {
"_readme": [ "_readme": [
"By default Drupal loads the autoloader from ./core/vendor/autoload.php.", "By default Drupal loads the autoloader from ./vendor/autoload.php.",
"To change the autoloader you can edit ./autoload.php." "To change the autoloader you can edit ./autoload.php."
] ],
"merge-plugin": {
"include": [
"core/composer.json"
],
"recurse": false,
"replace": false,
"merge-extra": false
}
},
"autoload": {
"psr-4": {
"Drupal\\Core\\Composer\\": "core/lib/Drupal/Core/Composer"
}
},
"scripts": {
"pre-autoload-dump": "Drupal\\Core\\Composer\\Composer::preAutoloadDump",
"post-autoload-dump": "Drupal\\Core\\Composer\\Composer::ensureHtaccess"
} }
} }
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -1010,7 +1010,7 @@ private function changeDatabasePrefix() { ...@@ -1010,7 +1010,7 @@ private function changeDatabasePrefix() {
*/ */
protected function prepareEnvironment() { protected function prepareEnvironment() {
// Bootstrap Drupal so we can use Drupal's built in functions. // Bootstrap Drupal so we can use Drupal's built in functions.
$this->classLoader = require __DIR__ . '/../../../vendor/autoload.php'; $this->classLoader = require __DIR__ . '/../../../../autoload.php';
$request = Request::createFromGlobals(); $request = Request::createFromGlobals();
$kernel = TestRunnerKernel::createFromRequest($request, $this->classLoader); $kernel = TestRunnerKernel::createFromRequest($request, $this->classLoader);
// TestRunnerKernel expects the working directory to be DRUPAL_ROOT. // TestRunnerKernel expects the working directory to be DRUPAL_ROOT.
......
...@@ -68,14 +68,14 @@ protected function getProtectedFiles() { ...@@ -68,14 +68,14 @@ protected function getProtectedFiles() {
$file_paths["$path/access_test.$file_ext"] = 403; $file_paths["$path/access_test.$file_ext"] = 403;
} }
// Tests the .htaccess file in core/vendor and created by a Composer script. // Tests the .htaccess file in vendor and created by a Composer script.
// Try and access a non PHP file in the vendor directory. // Try and access a non PHP file in the vendor directory.
// @see Drupal\\Core\\Composer\\Composer::ensureHtaccess // @see Drupal\\Core\\Composer\\Composer::ensureHtaccess
$file_paths['core/vendor/composer/installed.json'] = 403; $file_paths['vendor/composer/installed.json'] = 403;
// Tests the rewrite conditions and rule that denies access to php files. // Tests the rewrite conditions and rule that denies access to php files.
$file_paths['core/lib/Drupal.php'] = 403; $file_paths['core/lib/Drupal.php'] = 403;
$file_paths['core/vendor/autoload.php'] = 403; $file_paths['vendor/autoload.php'] = 403;
$file_paths['autoload.php'] = 403; $file_paths['autoload.php'] = 403;
// Test extensions that should be permitted. // Test extensions that should be permitted.
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
// Change the directory to the Drupal root. // Change the directory to the Drupal root.
chdir('..'); chdir('..');
$autoloader = require_once __DIR__ . '/vendor/autoload.php'; $autoloader = require_once __DIR__ . '/../autoload.php';
require_once __DIR__ . '/includes/utility.inc'; require_once __DIR__ . '/includes/utility.inc';
$request = Request::createFromGlobals(); $request = Request::createFromGlobals();
......
This diff is collapsed.
<?php
// autoload_files.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
$vendorDir . '/guzzlehttp/promises/src/functions_include.php',
$vendorDir . '/guzzlehttp/psr7/src/functions_include.php',
$vendorDir . '/guzzlehttp/guzzle/src/functions_include.php',
$baseDir . '/lib/Drupal.php',
);
<?php
// autoload_namespaces.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'phpDocumentor' => array($vendorDir . '/phpdocumentor/reflection-docblock/src'),
'org\\bovigo\\vfs\\' => array($vendorDir . '/mikey179/vfsStream/src/main/php'),
'Twig_' => array($vendorDir . '/twig/twig/lib'),
'Stack' => array($vendorDir . '/stack/builder/src'),
'Psr\\Log\\' => array($vendorDir . '/psr/log'),
'Prophecy\\' => array($vendorDir . '/phpspec/prophecy/src'),
'Egulias\\' => array($vendorDir . '/egulias/email-validator/src'),
'EasyRdf_' => array($vendorDir . '/easyrdf/easyrdf/lib'),
'Doctrine\\Common\\Lexer\\' => array($vendorDir . '/doctrine/lexer/lib'),
'Doctrine\\Common\\Inflector\\' => array($vendorDir . '/doctrine/inflector/lib'),
'Doctrine\\Common\\Collections\\' => array($vendorDir . '/doctrine/collections/lib'),
'Doctrine\\Common\\Cache\\' => array($vendorDir . '/doctrine/cache/lib'),
'Doctrine\\Common\\Annotations\\' => array($vendorDir . '/doctrine/annotations/lib'),
'Doctrine\\Common\\' => array($vendorDir . '/doctrine/common/lib'),
'Behat\\Mink\\Driver' => array($vendorDir . '/behat/mink-browserkit-driver/src'),
);
<?php
// autoload_psr4.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'Zend\\Stdlib\\' => array($vendorDir . '/zendframework/zend-stdlib/src'),
'Zend\\Feed\\' => array($vendorDir . '/zendframework/zend-feed/src'),
'Zend\\Escaper\\' => array($vendorDir . '/zendframework/zend-escaper/src'),
'Zend\\Diactoros\\' => array($vendorDir . '/zendframework/zend-diactoros/src'),
'Symfony\\Component\\Yaml\\' => array($vendorDir . '/symfony/yaml'),
'Symfony\\Component\\Validator\\' => array($vendorDir . '/symfony/validator'),
'Symfony\\Component\\Translation\\' => array($vendorDir . '/symfony/translation'),
'Symfony\\Component\\Serializer\\' => array($vendorDir . '/symfony/serializer'),
'Symfony\\Component\\Routing\\' => array($vendorDir . '/symfony/routing'),
'Symfony\\Component\\Process\\' => array($vendorDir . '/symfony/process'),
'Symfony\\Component\\HttpKernel\\' => array($vendorDir . '/symfony/http-kernel'),
'Symfony\\Component\\HttpFoundation\\' => array($vendorDir . '/symfony/http-foundation'),
'Symfony\\Component\\EventDispatcher\\' => array($vendorDir . '/symfony/event-dispatcher'),
'Symfony\\Component\\DomCrawler\\' => array($vendorDir . '/symfony/dom-crawler'),
'Symfony\\Component\\DependencyInjection\\' => array($vendorDir . '/symfony/dependency-injection'),
'Symfony\\Component\\Debug\\' => array($vendorDir . '/symfony/debug'),
'Symfony\\Component\\CssSelector\\' => array($vendorDir . '/symfony/css-selector'),
'Symfony\\Component\\Console\\' => array($vendorDir . '/symfony/console'),
'Symfony\\Component\\ClassLoader\\' => array($vendorDir . '/symfony/class-loader'),
'Symfony\\Component\\BrowserKit\\' => array($vendorDir . '/symfony/browser-kit'),
'Symfony\\Cmf\\Component\\Routing\\' => array($vendorDir . '/symfony-cmf/routing'),
'Symfony\\Bridge\\PsrHttpMessage\\' => array($vendorDir . '/symfony/psr-http-message-bridge'),
'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src'),
'Masterminds\\' => array($vendorDir . '/masterminds/html5/src'),
'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'),
'GuzzleHttp\\Promise\\' => array($vendorDir . '/guzzlehttp/promises/src'),
'GuzzleHttp\\' => array($vendorDir . '/guzzlehttp/guzzle/src'),
'Goutte\\' => array($vendorDir . '/fabpot/goutte/Goutte'),
'Drupal\\Driver\\' => array($baseDir . '/../drivers/lib/Drupal/Driver'),
'Drupal\\Core\\' => array($baseDir . '/lib/Drupal/Core'),
'Drupal\\Component\\' => array($baseDir . '/lib/Drupal/Component'),
'Doctrine\\Instantiator\\' =>