public function __construct(?StreamFactoryInterface $streamFactory = null, ?UriFactoryInterface $uriFactory = null)
    {
        if (! isset($streamFactory)) {
            $streamFactory = new StreamFactory();
        }