Commit 33b5c4b6 authored by Crell's avatar Crell Committed by katbailey

Whitespace and documentation fixes.

parent bfbb42a8
<?php
/**
* @file
* Definition of Drupal\Core\CoreBundle.
*/
namespace Drupal\Core;
use Drupal\Core\DependencyInjection\Compiler\RegisterKernelListenersPass;
......@@ -11,6 +16,8 @@
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
/**
* Bundle class for mandatory core services.
*
* This is where Drupal core registers all of its services to the Dependency
* Injection Container. Modules wishing to register services to the container
* should extend Symfony's Bundle class directly, not this class.
......
......@@ -79,6 +79,8 @@ protected function getContainerBuilder() {
}
/**
* Overrides and eliminates this method from the parent class. Do not use.
*
* This method is part of the KernelInterface interface, but takes an object
* implementing LoaderInterface as its only parameter. This is part of the
* Config compoment from Symfony, which is not provided by Drupal core.
......
......@@ -29,6 +29,8 @@ class ExceptionController extends ContainerAware {
protected $negotiation;
/**
* Instantiates a new exception listener.
*
* Factory method for getting an Exception Listener. Since this needs to be
* instanciated with a controller callable, i.e. an ExceptionConroller object
* and the name of the method to call, we can't just register it to the DIC
......
......@@ -36,4 +36,4 @@ public function getLanguage($type) {
function reset() {
$this->languages = array();
}
}
\ No newline at end of file
}
<?php
/**
* @file
* Definition of Drupal\bundle_test\BundleTestBundle.
*/
namespace Drupal\bundle_test;
use Symfony\Component\DependencyInjection\Definition;
......@@ -16,4 +21,4 @@ public function build(ContainerBuilder $container) {
$container->register('bundle_test_class', 'Drupal\bundle_test\TestClass')
->addTag('kernel.event_subscriber');
}
}
\ No newline at end of file
}
<?php
/**
* @file
* Definition of Drupal\bundle_test\TestClass.
*/
namespace Drupal\bundle_test;
use Symfony\Component\HttpKernel\KernelEvents;
......@@ -25,4 +30,4 @@ static function getSubscribedEvents() {
$events[KernelEvents::REQUEST][] = array('onKernelRequestTest', 100);
return $events;
}
}
\ No newline at end of file
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment