public function CorsResponseEventSubscriber::__construct in farmOS 2.x
Constructs a new CorsResponseEventSubscriber.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.
File
- modules/
core/ api/ src/ EventSubscriber/ CorsResponseEventSubscriber.php, line 31
Class
- CorsResponseEventSubscriber
- Responds to the Kernel Response event to add CORS headers.
Namespace
Drupal\farm_api\EventSubscriberCode
public function __construct(EntityTypeManagerInterface $entity_type_manager) {
$this->entityTypeManager = $entity_type_manager;
}