Skip to content

Instantly share code, notes, and snippets.

@EclipseGc
Created August 13, 2012 18:42
Show Gist options
  • Save EclipseGc/3343102 to your computer and use it in GitHub Desktop.
Save EclipseGc/3343102 to your computer and use it in GitHub Desktop.
<?php
/**
* @file
* Definition of Drupal\block\BlockBundle.
*/
namespace Drupal\Block;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* Block dependency injection container.
*/
class BlockBundle extends Bundle {
/**
* Overrides Symfony\Component\HttpKernel\Bundle\Bundle.
*/
public function build(ContainerBuilder $container) {
// register the BlockManager class with the dependency injection container.
$container->register('plugin.manager.block', 'Drupal\block\Plugins\Type\BlockManager');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment