Commit e70d9ac8 authored by Crell's avatar Crell
Browse files

Improve documentation.

parent 6275cc59
<?php
/**
* @file
*
* Definition of Drupal\Core\EventSubscriber\LegacyRequestSubscriber
*/
namespace Drupal\Core\EventSubscriber;
use Symfony\Component\HttpFoundation\Request;
......@@ -7,19 +13,18 @@
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
/**
* @file
*
* Definition of Drupal\Core\EventSubscriber\LegacyRequestSubscriber
*/
/**
* KernelEvents::REQUEST event subscriber to initialize theme and modules.
*
* @todo Remove this subscriber when all of the code in it has been refactored.
*/
class LegacyRequestSubscriber implements EventSubscriberInterface {
/**
* @todo Document.
* Initializes the rest of the legacy Drupal subsystems.
*
* @param GetResponseEvent $event
* The Event to process.
*/
public function onKernelRequestLegacy(GetResponseEvent $event) {
menu_set_custom_theme();
......
<?php
/**
* @file
*
* Definition of Drupal\Core\EventSubscriber\PathListenerAbstract
*/
namespace Drupal\Core\EventSubscriber;
use Symfony\Component\HttpFoundation\Request;
/**
* Description of PathListenerAbstract
* Base class for listeners that are manipulating the path.
*/
abstract class PathListenerAbstract {
......
<?php
/**
* @file
*
* Definition of Drupal\Core\EventSubscriber\PathSubscriber
*/
namespace Drupal\Core\EventSubscriber;
use Symfony\Component\HttpFoundation\Request;
......@@ -7,12 +13,6 @@
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
/**
* @file
*
* Definition of Drupal\Core\EventSubscriber\AccessSubscriber
*/
/**
* Access subscriber for controller requests.
*/
......@@ -69,7 +69,11 @@ public function onKernelRequestFrontPageResolve(GetResponseEvent $event) {
}
/**
* @todo Document.
* Decode language information embedded in the request path.
*
* @todo Refactor this entire method to inline the relevant portions of
* drupal_language_initialize(). See the inline comment for more
* details.
*
* @param GetResponseEvent $event
* The Event to process.
......
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