public function SmsIncomingController::__construct in SMS Framework 8
Same name and namespace in other branches
- 2.x src/SmsIncomingController.php \Drupal\sms\SmsIncomingController::__construct()
- 2.1.x src/SmsIncomingController.php \Drupal\sms\SmsIncomingController::__construct()
Creates an incoming route controller.
Parameters
\Drupal\Core\Controller\ControllerResolverInterface $controller_resolver: The controller resolver.
\Drupal\sms\Provider\SmsProviderInterface $sms_provider: The SMS service provider.
File
- src/
SmsIncomingController.php, line 39
Class
- SmsIncomingController
- Provides a controller for receiving incoming messages.
Namespace
Drupal\smsCode
public function __construct(ControllerResolverInterface $controller_resolver, SmsProviderInterface $sms_provider) {
$this->controllerResolver = $controller_resolver;
$this->smsProvider = $sms_provider;
}