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:
parent
b11a755ba8
commit
c0a0d5a94c
6920 changed files with 64395 additions and 57312 deletions
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\Core\Controller\ControllerResolver.
|
||||
*/
|
||||
|
||||
namespace Drupal\Core\Controller;
|
||||
|
||||
use Drupal\Core\DependencyInjection\ClassResolverInterface;
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\Core\Controller\ControllerResolverInterface.
|
||||
*/
|
||||
|
||||
namespace Drupal\Core\Controller;
|
||||
|
||||
use Symfony\Component\HttpKernel\Controller\ControllerResolverInterface as BaseControllerResolverInterface;
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\Core\Controller\FormController.
|
||||
*/
|
||||
|
||||
namespace Drupal\Core\Controller;
|
||||
|
||||
use Drupal\Core\DependencyInjection\DependencySerializationTrait;
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\Core\Controller\HtmlFormController.
|
||||
*/
|
||||
|
||||
namespace Drupal\Core\Controller;
|
||||
|
||||
use Drupal\Core\Form\FormBuilderInterface;
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\Core\Controller\TitleResolver.
|
||||
*/
|
||||
|
||||
namespace Drupal\Core\Controller;
|
||||
|
||||
use Drupal\Core\StringTranslation\StringTranslationTrait;
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\Core\Controller\TitleResolverInterface.
|
||||
*/
|
||||
namespace Drupal\Core\Controller;
|
||||
|
||||
use Symfony\Component\Routing\Route;
|
||||
|
|
Reference in a new issue