Skip to content

Commit

Permalink
Merge pull request #407 from openeuropa/OPENEUROPA-2747
Browse files Browse the repository at this point in the history
OPENEUROPA-2747: Fix error in signature of ComponentLibraryLoader constructor.
  • Loading branch information
brummbar authored Jan 22, 2020
2 parents 8969c8b + b13ae39 commit e4a4fc6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/oe_theme_helper/src/Loader/ComponentLibraryLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace Drupal\oe_theme_helper\Loader;

use Drupal\Core\Extension\ThemeHandler;
use Drupal\Core\Logger\LoggerChannelFactory;
use Drupal\Core\Extension\ThemeHandlerInterface;
use Drupal\Core\Logger\LoggerChannelFactoryInterface;
use OpenEuropa\Twig\Loader\EuropaComponentLibraryLoader;
use Drupal\Core\Messenger\MessengerTrait;

Expand All @@ -26,14 +26,14 @@ class ComponentLibraryLoader extends EuropaComponentLibraryLoader {
/**
* Logger factory.
*
* @var \Drupal\Core\Logger\LoggerChannelInterface
* @var \Drupal\Core\Logger\LoggerChannelFactoryInterface
*/
protected $logger;

/**
* {@inheritdoc}
*/
public function __construct($namespaces, $root, $theme, $directory, ThemeHandler $theme_handler, LoggerChannelFactory $logger_factory) {
public function __construct($namespaces, $root, $theme, $directory, ThemeHandlerInterface $theme_handler, LoggerChannelFactoryInterface $logger_factory) {
// Make sure the theme exists before getting its path.
// This is necessary when the "oe_theme_helper" module is enabled before
// the theme is or the theme is disabled and the "oe_theme_helper" is not.
Expand Down

0 comments on commit e4a4fc6

Please sign in to comment.