Update to Drupal 8.0.0 beta 14. For more information, see https://drupal.org/node/2544542
This commit is contained in:
parent
3b2511d96d
commit
81ccda77eb
2155 changed files with 54307 additions and 46870 deletions
23
core/scripts/generate-proxy-class.php
Normal file
23
core/scripts/generate-proxy-class.php
Normal file
|
@ -0,0 +1,23 @@
|
|||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
use Drupal\Core\Command\GenerateProxyClassApplication;
|
||||
use Drupal\Core\DrupalKernel;
|
||||
use Drupal\Core\ProxyBuilder\ProxyBuilder;
|
||||
use Drupal\Core\Site\Settings;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
if (PHP_SAPI !== 'cli') {
|
||||
return;
|
||||
}
|
||||
|
||||
// Bootstrap.
|
||||
$autoloader = require __DIR__ . '/../../autoload.php';
|
||||
require_once __DIR__ . '/../includes/bootstrap.inc';
|
||||
$request = Request::createFromGlobals();
|
||||
Settings::initialize(dirname(dirname(__DIR__)), DrupalKernel::findSitePath($request), $autoloader);
|
||||
$kernel = DrupalKernel::createFromRequest($request, $autoloader, 'prod')->boot();
|
||||
|
||||
// Run the database dump command.
|
||||
$application = new GenerateProxyClassApplication(new ProxyBuilder());
|
||||
$application->run();
|
|
@ -286,7 +286,7 @@ function restore_table($path, Connection $connection) {
|
|||
* @param string $path
|
||||
* The path to the dump file.
|
||||
*
|
||||
* @return boolean
|
||||
* @return bool
|
||||
*/
|
||||
function table_is_valid($path) {
|
||||
// The call to rtrim() is important, since we need to extract a specific
|
||||
|
|
|
@ -1204,7 +1204,8 @@ function simpletest_script_open_browser() {
|
|||
$css_assets = \Drupal::service('asset.css.collection_renderer')->render($resolver->getCssAssets($assets, FALSE));
|
||||
|
||||
// Make the html page to write to disk.
|
||||
$html = '<head>' . drupal_render($js_assets_header) . drupal_render($css_assets) . '</head><body>' . drupal_render($form) . drupal_render($js_assets_footer) .'</body>';
|
||||
$render_service = \Drupal::service('renderer');
|
||||
$html = '<head>' . ($js_assets_header) . $render_service->renderPlain($css_assets) . '</head><body>' . $render_service->renderPlain($form) . $render_service->renderPlain($js_assets_footer) .'</body>';
|
||||
|
||||
// Ensure we have assets verbose directory - tests with no verbose output will not
|
||||
// have created one.
|
||||
|
|
Reference in a new issue