You are here

public function AcceptHeader::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/AcceptHeader.php \Symfony\Component\HttpFoundation\AcceptHeader::__construct()

Constructor.

Parameters

AcceptHeaderItem[] $items:

File

vendor/symfony/http-foundation/AcceptHeader.php, line 39

Class

AcceptHeader
Represents an Accept-* header.

Namespace

Symfony\Component\HttpFoundation

Code

public function __construct(array $items) {
  foreach ($items as $item) {
    $this
      ->add($item);
  }
}