Update to Drupal 8.1.0. For more information, see https://www.drupal.org/drupal-8.1.0-release-notes

This commit is contained in:
Pantheon Automation 2016-04-20 09:56:34 -07:00 committed by Greg Anderson
parent b11a755ba8
commit c0a0d5a94c
6920 changed files with 64395 additions and 57312 deletions

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Controller\ControllerBase.
*/
namespace Drupal\Core\Controller;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
@ -112,6 +107,13 @@ abstract class ControllerBase implements ContainerInjectionInterface {
*/
protected $formBuilder;
/**
* The logger factory.
*
* @var \Psr\Log\LoggerInterface
*/
protected $loggerFactory;
/**
* {@inheritdoc}
*/
@ -282,6 +284,23 @@ abstract class ControllerBase implements ContainerInjectionInterface {
return $this->languageManager;
}
/**
* Returns a channel logger object.
*
* @param string $channel
* The name of the channel. Can be any string, but the general practice is
* to use the name of the subsystem calling this.
*
* @return \Psr\Log\LoggerInterface
* The logger for this channel.
*/
protected function getLogger($channel) {
if (!$this->loggerFactory) {
$this->loggerFactory = $this->container()->get('logger.factory');
}
return $this->loggerFactory->get($channel);
}
/**
* Returns the service container.
*

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Controller\ControllerResolver.
*/
namespace Drupal\Core\Controller;
use Drupal\Core\DependencyInjection\ClassResolverInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Controller\ControllerResolverInterface.
*/
namespace Drupal\Core\Controller;
use Symfony\Component\HttpKernel\Controller\ControllerResolverInterface as BaseControllerResolverInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Controller\FormController.
*/
namespace Drupal\Core\Controller;
use Drupal\Core\DependencyInjection\DependencySerializationTrait;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Controller\HtmlFormController.
*/
namespace Drupal\Core\Controller;
use Drupal\Core\Form\FormBuilderInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Controller\TitleResolver.
*/
namespace Drupal\Core\Controller;
use Drupal\Core\StringTranslation\StringTranslationTrait;

View file

@ -1,9 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Controller\TitleResolverInterface.
*/
namespace Drupal\Core\Controller;
use Symfony\Component\Routing\Route;