public function ContentHubAccess::__construct in Acquia Content Hub 8.2
Same name and namespace in other branches
- 8 src/Access/ContentHubAccess.php \Drupal\acquia_contenthub\Access\ContentHubAccess::__construct()
Constructs a ContentHubAccess object.
Parameters
\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger factory.
\Drupal\acquia_contenthub\Client\ClientFactory $client_factory: The client factory.
File
- src/
Access/ ContentHubAccess.php, line 39
Class
- ContentHubAccess
- Implements permission to prevent unauthorized access to webhooks.
Namespace
Drupal\acquia_contenthub\AccessCode
public function __construct(LoggerChannelFactoryInterface $logger_factory, ClientFactory $client_factory) {
$this->loggerFactory = $logger_factory;
$this->clientFactory = $client_factory;
}