You are here

public function DiactorosFactory::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/psr-http-message-bridge/Factory/DiactorosFactory.php \Symfony\Bridge\PsrHttpMessage\Factory\DiactorosFactory::__construct()

File

vendor/symfony/psr-http-message-bridge/Factory/DiactorosFactory.php, line 33

Class

DiactorosFactory
Builds Psr\HttpMessage instances using the Zend Diactoros implementation.

Namespace

Symfony\Bridge\PsrHttpMessage\Factory

Code

public function __construct() {
  if (!class_exists('Zend\\Diactoros\\ServerRequestFactory')) {
    throw new \RuntimeException('Zend Diactoros must be installed to use the DiactorosFactory.');
  }
}