Skip to content

Commit

Permalink
Fixed class inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Oct 20, 2023
1 parent 07b0e07 commit b6f8b7c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/EventSubscriber/EventSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ public static function getSubscribedEvents() {
* @param \Drupal\Core\Messenger\MessengerInterface $messenger
* Messenger service.
*/
public function __construct(FileSystemInterface $file_system, LoggerChannelFactoryInterface $logger_factory) {
$this->fileSystem = $file_system;
public function __construct(protected FileSystemInterface $fileSystem, LoggerChannelFactoryInterface $logger_factory, protected MessengerInterface $messenger) {
$this->logger = $logger_factory->get('soe_profile');
}

Expand Down
7 changes: 6 additions & 1 deletion tests/src/Kernel/EventSubscriber/EventSubscriberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,16 @@
use Drupal\media\Entity\Media;
use Drupal\media\Entity\MediaType;
use Drupal\soe_profile\EventSubscriber\EventSubscriber as StanfordEventSubscriber;
use Drupal\user\Entity\Role;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Event\RequestEvent;
use Symfony\Component\HttpKernel\HttpKernelInterface;

/**
* Class EventSubscriberTest.
*
* @group stanford_profile
* @group soe_profile
* @coversDefaultClass \Drupal\soe_profile\EventSubscriber\EventSubscriber
*/
class EventSubscriberTest extends KernelTestBase {
Expand Down

0 comments on commit b6f8b7c

Please sign in to comment.