Commit 79a7f1cf authored by webchick's avatar webchick

Issue #1978166 follow-up by tim.plunkett: Fix broken tests due to broken typehint.

parent 547b8745
......@@ -8,9 +8,8 @@
namespace Drupal\custom_block\Controller;
use Drupal\Core\Controller\ControllerInterface;
use Drupal\custom_block\CustomBlockStorageController;
use Drupal\Core\Entity\EntityStorageControllerInterface;
use Drupal\custom_block\CustomBlockTypeInterface;
use Drupal\custom_block\CustomBlockTypeStorageController;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\Request;
......@@ -26,14 +25,14 @@ class CustomBlockController implements ControllerInterface {
/**
* The custom block storage controller.
*
* @var \Drupal\custom_block\CustomBlockStorageController
* @var \Drupal\Core\Entity\EntityStorageControllerInterface
*/
protected $customBlockStorage;
/**
* The custom block type storage controller.
*
* @var \Drupal\custom_block\CustomBlockTypeStorageController
* @var \Drupal\Core\Entity\EntityStorageControllerInterface
*/
protected $customBlockTypeStorage;
......@@ -54,12 +53,12 @@ public static function create(ContainerInterface $container) {
*
* @param \Symfony\Component\HttpFoundation\Request $request
* Current request.
* @param \Drupal\custom_block\CustomBlockStorageController $custom_block_storage
* @param \Drupal\Core\Entity\EntityStorageControllerInterface $custom_block_storage
* The custom block storage controller.
* @param \Drupal\custom_block\CustomBlockTypeStorageController $custom_block_type_storage
* @param \Drupal\Core\Entity\EntityStorageControllerInterface $custom_block_type_storage
* The custom block type storage controller.
*/
public function __construct(Request $request, CustomBlockStorageController $custom_block_storage, CustomBlockTypeStorageController $custom_block_type_storage) {
public function __construct(Request $request, EntityStorageControllerInterface $custom_block_storage, EntityStorageControllerInterface $custom_block_type_storage) {
$this->request = $request;
$this->customBlockStorage = $custom_block_storage;
$this->customBlockTypeStorage = $custom_block_type_storage;
......
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