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