Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
e40099fd
Commit
e40099fd
authored
Mar 01, 2015
by
alexpott
Browse files
Issue
#2426735
by dawehner: Small docs improvements of WebTestBase::rebuildContainer
parent
a701df0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/simpletest/src/WebTestBase.php
View file @
e40099fd
...
...
@@ -1138,10 +1138,10 @@ protected function writeCustomTranslations() {
/**
* Rebuilds \Drupal::getContainer().
*
* Use this to
build a new kernel and service container. For example, when the
* list of enabled modules is changed via the internal
browser, in which case
* the test process
still contains an old
kernel
and
service container with an
*
old
module list.
* Use this to
update the test process's kernel with a new service container.
*
For example, when the
list of enabled modules is changed via the internal
*
browser
the test process
's
kernel
has a
service container with an
out of
*
date
module list.
*
* @see TestBase::prepareEnvironment()
* @see TestBase::restoreEnvironment()
...
...
@@ -1152,8 +1152,6 @@ protected function writeCustomTranslations() {
* enabled modules to be immediately available in the same request.
*/
protected
function
rebuildContainer
()
{
// Maintain the current global request object.
$request
=
\
Drupal
::
request
();
// Rebuild the kernel and bring it back to a fully bootstrapped state.
$this
->
container
=
$this
->
kernel
->
rebuildContainer
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment