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
c4b40e5b
Commit
c4b40e5b
authored
Jan 19, 2013
by
webchick
Browse files
Issue
#1893534
by msonnabaum: Fixed Typehint the container interface instead of the class.
parent
f4d2f16f
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/includes/bootstrap.inc
View file @
c4b40e5b
...
...
@@ -7,6 +7,7 @@
use
Drupal\Core\DependencyInjection\ContainerBuilder
;
use
Symfony\Component\ClassLoader\UniversalClassLoader
;
use
Symfony\Component\ClassLoader\ApcUniversalClassLoader
;
use
Symfony\Component\DependencyInjection\ContainerInterface
;
use
Symfony\Component\DependencyInjection\Container
;
use
Symfony\Component\DependencyInjection\Reference
;
use
Symfony\Component\DependencyInjection\Exception\RuntimeException
as
DependencyInjectionRuntimeException
;
...
...
@@ -2457,14 +2458,14 @@ function drupal_get_bootstrap_phase() {
*
* @see Drupal\Core\DrupalKernel
*
* @param Symfony\Component\DependencyInjection\Container $new_container
* @param Symfony\Component\DependencyInjection\Container
Interface
$new_container
* (optional) A new container instance to replace the current.
*
* @return Symfony\Component\DependencyInjection\Container|bool
* The instance of the Container used to set up and maintain
object
* instances or FALSE if none exist yet.
* @return Symfony\Component\DependencyInjection\Container
Interface
|bool
* The instance of the Container
Interface
used to set up and maintain
*
object
instances or FALSE if none exist yet.
*/
function
drupal_container
(
Container
$new_container
=
NULL
)
{
function
drupal_container
(
Container
Interface
$new_container
=
NULL
)
{
// We do not use drupal_static() here because we do not have a mechanism by
// which to reinitialize the stored objects, so a drupal_static_reset() call
// would leave Drupal in a nonfunctional state.
...
...
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