You are here

public function SmsIncomingController::__construct in SMS Framework 2.x

Same name and namespace in other branches
  1. 8 src/SmsIncomingController.php \Drupal\sms\SmsIncomingController::__construct()
  2. 2.1.x src/SmsIncomingController.php \Drupal\sms\SmsIncomingController::__construct()

Creates an incoming route controller.

Parameters

\Symfony\Component\HttpKernel\Controller\ArgumentResolverInterface $controller_resolver: The argument resolver.

\Drupal\sms\Provider\SmsProviderInterface $sms_provider: The SMS service provider.

File

src/SmsIncomingController.php, line 41

Class

SmsIncomingController
Provides a controller for receiving incoming messages.

Namespace

Drupal\sms

Code

public function __construct(ArgumentResolverInterface $controller_resolver, SmsProviderInterface $sms_provider) {
  $this->argumentResolver = $controller_resolver;
  $this->smsProvider = $sms_provider;
}