Issue #1893800 by Berdir: Alias Symfony's ContainerBuilder in UpdateBundle to prevent conflicts.

8.0.x
webchick 2013-01-23 18:58:36 -08:00
parent 2575651a83
commit d89a17dc43
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
namespace Drupal\Core\DependencyInjection; namespace Drupal\Core\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\ContainerBuilder as SymfonyContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle; use Symfony\Component\HttpKernel\Bundle\Bundle;
/** /**
@ -22,7 +22,7 @@ class UpdateBundle extends Bundle {
/** /**
* Implements \Symfony\Component\HttpKernel\Bundle\BundleInterface::build(). * Implements \Symfony\Component\HttpKernel\Bundle\BundleInterface::build().
*/ */
public function build(ContainerBuilder $container) { public function build(SymfonyContainerBuilder $container) {
// Disable the Lock service. // Disable the Lock service.
$container $container
->register('lock', 'Drupal\Core\Lock\NullLockBackend'); ->register('lock', 'Drupal\Core\Lock\NullLockBackend');